diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 1a7d5561b..af34383cf 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -409,6 +409,11 @@ function system_theme_settings(&$form_state, $key = '') { } } } + elseif (!element_children($form['theme_settings'])) { + // If there is no element in the theme settings fieldset then do not show + // it -- but keep it in the form if another module wants to alter. + $form['theme_settings']['#access'] = FALSE; + } // Logo settings if ((!$key) || in_array('logo', $features)) { |