function securesite_form_alter in Secure Site 7.2
Same name and namespace in other branches
- 8 securesite.module \securesite_form_alter()
Implements hook_form_alter().
File
- ./
securesite.module, line 207 - Enables HTTP authentication or an HTML form to restrict site access.
Code
function securesite_form_alter(&$form, &$form_state, $form_id) {
if (in_array($form_id, array(
'user_register_form',
'user_profile_form',
))) {
$form['#validate'][] = 'securesite_user_validate';
}
}