#188911 by chx: hide toggle settings fieldset when a theme has 'no features'

6.x
Gábor Hojtsy 2007-11-04 15:54:53 +00:00
parent 022c9fccaf
commit ee20653233
1 changed files with 5 additions and 0 deletions

View File

@ -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)) {