#188911 by chx: hide toggle settings fieldset when a theme has 'no features'
parent
022c9fccaf
commit
ee20653233
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue