summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmburnz2013-03-06 21:50:50 (GMT)
committer jmburnz2013-03-06 21:50:50 (GMT)
commit15e03a55da113d888c7042351f4f62a573ea2fa4 (patch)
treef35d65908fcf0e9ad95db948ae33f42af2c52a11
parentee4c7724dd9595b9e117e8f36f1f87d818c25023 (diff)
Toggle menu bar region and standard Drupal menus ON for the menu toggle when enabled, provides backward compatibility with previous imlimentations
-rwxr-xr-xat_core/inc/forms/settings.menutoggle.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/at_core/inc/forms/settings.menutoggle.inc b/at_core/inc/forms/settings.menutoggle.inc
index 355dee5..7266780 100755
--- a/at_core/inc/forms/settings.menutoggle.inc
+++ b/at_core/inc/forms/settings.menutoggle.inc
@@ -51,13 +51,13 @@ function at_core_menu_toggle_form(&$form) {
$form['at']['menu-toggle']['menus-regions']['core']['menu_toggle_main_menu'] = array(
'#type' => 'checkbox',
'#title' => t('Main Menu'),
- '#default_value' => at_get_setting('menu_toggle_main_menu'),
+ '#default_value' => at_get_setting('menu_toggle_main_menu') ? at_get_setting('menu_toggle_main_menu') : 1,
);
// Core secondary menu
$form['at']['menu-toggle']['menus-regions']['core']['menu_toggle_secondary_menu'] = array(
'#type' => 'checkbox',
'#title' => t('Secondary menu'),
- '#default_value' => at_get_setting('menu_toggle_secondary_menu'),
+ '#default_value' => at_get_setting('menu_toggle_secondary_menu') ? at_get_setting('menu_toggle_secondary_menu') : 1,
);
// Regions
@@ -83,7 +83,7 @@ function at_core_menu_toggle_form(&$form) {
$form['at']['menu-toggle']['menus-regions']['regions']['menu_toggle_menu_bar'] = array(
'#type' => 'checkbox',
'#title' => t('Menu Bar'),
- '#default_value' => at_get_setting('menu_toggle_menu_bar'),
+ '#default_value' => at_get_setting('menu_toggle_menu_bar') ? at_get_setting('menu_toggle_menu_bar') : 1,
);
// Customize toggle link text