function site_banner_admin_settings_form_submit in Site Banner 7
Implements hook_form_FORM_ID_submit() for node_type_form().
1 string reference to 'site_banner_admin_settings_form_submit'
- site_banner_admin_settings_form in ./
site_banner.admin.inc - Implements hook_form_FORM_ID() for node_type_form().
File
- ./
site_banner.admin.inc, line 59
Code
function site_banner_admin_settings_form_submit($form, &$form_state) {
$banner_status = $form_state['values']['site_banner_status'];
$banner_debug_status = $form_state['values']['site_banner_debug_status'];
$top_banner_active = $form_state['values']['site_banner_top_banner_enabled'];
$bottom_banner_active = $form_state['values']['site_banner_bottom_banner_enabled'];
$background_color_code = site_banner_get_background_color_from_form($form_state);
$text_color_code = site_banner_get_text_color_from_form($form_state);
variable_set('site_banner_status', $banner_status);
variable_set('site_banner_debug_status', $banner_debug_status);
variable_set('site_banner_top_banner_active', $top_banner_active);
variable_set('site_banner_bottom_banner_active', $bottom_banner_active);
variable_set('site_banner_background_color', $background_color_code);
variable_set('site_banner_text_color', $text_color_code);
}