You are here

function splashify_admin_where_form_submit in Splashify 7

Same name and namespace in other branches
  1. 6 admin/splashify.admin.where.inc \splashify_admin_where_form_submit()

Implements form submit handler.

1 string reference to 'splashify_admin_where_form_submit'
splashify_admin_where_form in admin/splashify.admin.where.inc
"Where" settings tab.

File

admin/splashify.admin.where.inc, line 159
The admin "Where" tab.

Code

function splashify_admin_where_form_submit($form, &$form_state) {
  if ($form_state['values']['splashify_where_desktop_page'] != 'list') {

    // Unset the listpages variable (desktop), if the list pages option is not
    // set.
    variable_set('splashify_where_desktop_listpages', '');
  }
  if (isset($form_state['values']['splashify_where_mobile_page'])) {
    if ($form_state['values']['splashify_where_mobile_page'] != 'list') {

      // Unset the listpages variable (mobile), if the list pages option is not
      // set.
      variable_set('splashify_where_mobile_listpages', '');
    }
  }
}