function designkit_form_system_theme_settings_alter in DesignKit 6
Same name and namespace in other branches
- 7 designkit.module \designkit_form_system_theme_settings_alter()
Theme integration. Implementation of hook_form_alter() for system_theme_settings.
File
- ./
designkit.module, line 204
Code
function designkit_form_system_theme_settings_alter(&$form, &$form_state) {
module_load_include('inc', 'designkit', 'designkit.admin');
_designkit_form_alter($form, $form_state);
// weight buttons if not weighted already.
$form['buttons']['#weight'] = !isset($form['buttons']['#weight']) ? 10 : $form['buttons']['#weight'];
// yank logo if DesignKit will provide one with the same key.
$form['logo']['#access'] = !isset($form['designkit_image']['logo']);
// system_theme_settings form requires an additional submit handler.
$form['#submit'][] = '_designkit_system_theme_settings_submit';
}