You are here

function splashify_admin_what_form_validate in Splashify 6

Same name and namespace in other branches
  1. 7 admin/splashify.admin.what.inc \splashify_admin_what_form_validate()

Implements form validation handler.

1 string reference to 'splashify_admin_what_form_validate'
splashify_admin_what_form in admin/splashify.admin.what.inc
"What" settings tab.

File

admin/splashify.admin.what.inc, line 196
The admin "What" tab.

Code

function splashify_admin_what_form_validate($form, &$form_state) {

  // If they entered paths, make sure the path values are valid.
  $desktop_mode = $form_state['values']['splashify_what_desktop_mode'];
  if ($desktop_mode == 'random' || $desktop_mode == 'sequence') {
    splashify_what_paths_check('splashify_what_desktop_content', $form_state['values']['splashify_what_desktop_content']);
  }
  if (isset($form_state['values']['splashify_what_mobile_mode'])) {
    $mobile_mode = $form_state['values']['splashify_what_mobile_mode'];
    if ($mobile_mode == 'random' || $mobile_mode == 'sequence') {
      splashify_what_paths_check('splashify_what_mobile_content', $form_state['values']['splashify_what_mobile_content']);
    }
  }
}