function fastly_register_form_validate in Fastly 7
Same name and namespace in other branches
- 7.2 fastly.admin.inc \fastly_register_form_validate()
Implements hook_form_validate().
File
- ./
fastly.admin.inc, line 273 - Administrative forms for Fastly module.
Code
function fastly_register_form_validate($form, &$form_state) {
if ($form_state['values']['owner_password'] && strlen($form_state['values']['owner_password']) < 4) {
form_set_error('owner_password', t('The password must contain 4 or more characters.'));
}
if (!valid_email_address($form_state['values']['owner_login'])) {
form_set_error('owner_login', t('The email address is invalid.'));
}
if ($form_state['values']['owner_password'] !== $form_state['values']['confirm_password']) {
form_set_error('confirm_password', t('The passwords do not match.'));
}
fastly_help_message();
}