function securesite_user_validate in Secure Site 7.2
Same name and namespace in other branches
- 8 securesite.module \securesite_user_validate()
Validation callback for user registration and profile.
1 string reference to 'securesite_user_validate'
- securesite_form_alter in ./
securesite.module - Implements hook_form_alter().
File
- ./
securesite.module, line 216 - Enables HTTP authentication or an HTML form to restrict site access.
Code
function securesite_user_validate($form, $form_state) {
if (!array_key_exists('name', form_set_error()) && isset($form_state['values']['name']) && $form_state['values']['name'] == variable_get('securesite_guest_name', '')) {
form_set_error('name', t('The name %name is being used as the %site guest name.', array(
'%name' => $form_state['values']['name'],
'%site' => variable_get('site_name', 'Drupal'),
)));
}
}