function lockr_admin_register_validate in Lockr 7
Same name and namespace in other branches
- 7.2 include/register_form.inc \lockr_admin_register_validate()
Validate the register form.
1 string reference to 'lockr_admin_register_validate'
- lockr_admin_register_form in include/
register_form.inc - Returns the register form.
File
- include/
register_form.inc, line 40 - Form handlers for registration.
Code
function lockr_admin_register_validate($form, &$form_state) {
if (!valid_email_address($form_state['values']['email'])) {
form_set_error('email', t('Please enter a valid email address'));
}
}