summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index c59a7f11f..f22a775c0 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -233,6 +233,11 @@ function theme_get_settings($key = NULL) {
$settings = array_merge($settings, variable_get(str_replace('/', '_', 'theme_'. $key .'_settings'), array()));
}
+ // Only offer search box if search.module is enabled.
+ if (!module_exist('search')) {
+ $settings['toggle_search'] = 0;
+ }
+
return $settings;
}