You are here

function user_restrictions_ui_check_email_validate in User restrictions 7

Form validation handler for user_restrictions_ui_overview_form().

See also

user_restrictions_ui_overview_form()

user_restrictions_ui_check_email_submit()

1 string reference to 'user_restrictions_ui_check_email_validate'
user_restrictions_ui_overview_form in ./user_restrictions_ui.admin.inc
Form builder for the list of user restrictions.

File

./user_restrictions_ui.admin.inc, line 322
Administration pages for the user restrictions module.

Code

function user_restrictions_ui_check_email_validate($form, &$form_state) {
  if (empty($form_state['values']['value']) || !valid_email_address($form_state['values']['value'])) {
    form_set_error('value', t('The entered value is not a valid email address.'));
  }
}