function path_access_admin_configure_form_validate in Path Access 6
Same name and namespace in other branches
- 7 path_access.module \path_access_admin_configure_form_validate()
File
- ./
path_access.module, line 186 - Restricts access to any Drupal path on a per-role basis.
Code
function path_access_admin_configure_form_validate($form_id, &$form_state) {
// Prevent the logout page from being listed.
$pages = explode("\n", $form_state['values']['pages']);
if (in_array('logout', $pages)) {
form_set_error('pages', t('You cannot block access to the %logout page.', array(
'%logout' => 'logout',
)));
}
}