function tokenauth_admin_settings_validate in Token authentication 6.2
Same name and namespace in other branches
- 5 tokenauth.module \tokenauth_admin_settings_validate()
- 6 tokenauth.pages.inc \tokenauth_admin_settings_validate()
- 7 tokenauth.pages.inc \tokenauth_admin_settings_validate()
Validate callback.
File
- ./
tokenauth.pages.inc, line 79 - Provides administrative user interface for Tokenauth module.
Code
function tokenauth_admin_settings_validate($form, &$form_state) {
if ($form_state['values']['op'] == t('Reset tokens')) {
drupal_goto('admin/settings/tokenauth/reset');
}
if ($form_state['values']['tokenauth_length'] > 33) {
form_set_error('tokenauth_length', t('The maximum token length is 32.'));
}
}