function splashify_admin_what_form_submit in Splashify 6
Same name and namespace in other branches
- 7 admin/splashify.admin.what.inc \splashify_admin_what_form_submit()
Implements form submit handler.
1 string reference to 'splashify_admin_what_form_submit'
- splashify_admin_what_form in admin/
splashify.admin.what.inc - "What" settings tab.
File
- admin/
splashify.admin.what.inc, line 214 - The admin "What" tab.
Code
function splashify_admin_what_form_submit($form, &$form_state) {
// Clear out the title value if we aren't using the template option.
if ($form_state['values']['splashify_what_desktop_mode'] != 'template') {
variable_set('splashify_what_desktop_pagetitle', '');
}
if ($form_state['values']['splashify_what_mobile_mode'] != 'template') {
variable_set('splashify_what_mobile_pagetitle', '');
}
if ($form_state['values']['format']) {
variable_set('splashify_what_desktop_content_format', $form_state['values']['format']);
}
if ($form_state['values']['splashify_what_mobile_content_filter']) {
variable_set('splashify_what_mobile_content_format', $form_state['values']['splashify_what_mobile_content_filter']);
}
}