function splashify_admin_where_form_validate in Splashify 6
Same name and namespace in other branches
- 7 admin/splashify.admin.where.inc \splashify_admin_where_form_validate()
Implements form validation handler.
1 string reference to 'splashify_admin_where_form_validate'
- splashify_admin_where_form in admin/
splashify.admin.where.inc - "Where" settings tab.
File
- admin/
splashify.admin.where.inc, line 91 - The admin "Where" tab.
Code
function splashify_admin_where_form_validate($form, &$form_state) {
// If they entered paths, make sure the path values are valid.
if ($form_state['values']['splashify_where_desktop_page'] == 'list') {
splashify_where_paths_check('splashify_where_desktop_listpages', $form_state['values']['splashify_where_desktop_listpages']);
}
if (isset($form_state['values']['splashify_where_mobile_page'])) {
if ($form_state['values']['splashify_where_mobile_page'] == 'list') {
splashify_where_paths_check('splashify_where_mobile_listpages', $form_state['values']['splashify_where_mobile_listpages']);
}
}
}