You are here

function lockr_admin_register_validate in Lockr 7.2

Same name and namespace in other branches
  1. 7 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 44
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'));
  }
}