diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-04 15:54:53 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-04 15:54:53 +0000 |
commit | ee2065323386478e2d9c1c9f76723e989ce67b1d (patch) | |
tree | 494da5b063841b1d47d4fa0d7e96f27d771dd9eb | |
parent | 022c9fccaf0da8698de2629db6108b6b06658c15 (diff) | |
download | brdo-ee2065323386478e2d9c1c9f76723e989ce67b1d.tar.gz brdo-ee2065323386478e2d9c1c9f76723e989ce67b1d.tar.bz2 |
#188911 by chx: hide toggle settings fieldset when a theme has 'no features'
-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)) { |