function lockr_login_form_validate in Lockr 7
Same name and namespace in other branches
- 7.3 lockr.login.inc \lockr_login_form_validate()
- 7.2 lockr.login.inc \lockr_login_form_validate()
Attempt to log in with the credentials given.
File
- ./
lockr.login.inc, line 51 - Form callbacks for the Lockr login form.
Code
function lockr_login_form_validate($form, &$form_state) {
if (!valid_email_address($form_state['values']['email'])) {
form_set_error('email', t('Please enter a valid email address'));
}
}