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