Hello Omega,
I need to toggle the visibility of the breadcrumbs using the GUI, so I just create a small feature that implements that from the Appearance->Settings->Toggle display and I like to share.
I don’t know if I follow the best practices so please review before use.

Comments

tvl’s picture

fubhy’s picture

Hey.

+++ b/omega/theme-settings.php
@@ -172,6 +172,13 @@ function omega_form_system_theme_settings_alter(&$form, &$form_state, $form_id =
+    '#default_value' => omega_theme_get_setting('omega_toggle_breadcrumbs', TRUE),

+++ b/omega/theme/breadcrumb.theme.inc
@@ -13,6 +13,11 @@
+  if (!theme_get_setting('omega_toggle_breadcrumbs')) {

You are setting the default value to TRUE in the form but you don't set any default value when checking in omega_breadcrumb(). You should use omega_theme_get_setting() there as well.

tvl’s picture

Many thanks for the advice-fix!

damienmckenna’s picture

Status: Active » Needs work
avpaderno’s picture

Component: Feature Request » Code