Commit ee206532 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

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

parent 022c9fcc
...@@ -409,6 +409,11 @@ function system_theme_settings(&$form_state, $key = '') { ...@@ -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 // Logo settings
if ((!$key) || in_array('logo', $features)) { if ((!$key) || in_array('logo', $features)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment