function vertical_tabs_system_theme_settings_submit in Vertical Tabs 6
Submit handler for the theme settings page.
1 string reference to 'vertical_tabs_system_theme_settings_submit'
File
- ./
vertical_tabs.module, line 132 - Provides vertical tabs capability for fieldsets in forms.
Code
function vertical_tabs_system_theme_settings_submit($form, &$form_state) {
$theme = $form_state['values']['theme'];
$info = $form_state['values']['info'];
// Resolve palette
$palette = $form_state['values']['palette'];
if ($form_state['values']['scheme'] != '') {
$scheme = explode(',', $form_state['values']['scheme']);
foreach ($palette as $k => $color) {
$palette[$k] = array_shift($scheme);
}
}
vertical_tabs_generate_stylesheet($theme, $info, $palette);
}