function user_restrictions_ui_check_email_submit in User restrictions 7
Form submission handler for user_restrictions_ui_overview_form().
See also
user_restrictions_ui_overview_form()
user_restrictions_ui_check_email_validate()
1 string reference to 'user_restrictions_ui_check_email_submit'
- 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 335 - Administration pages for the user restrictions module.
Code
function user_restrictions_ui_check_email_submit($form, &$form_state) {
$error = UserRestrictions::check($form_state, 'check_mail');
if ($error['message'] != '') {
drupal_set_message($error['message'], 'warning');
}
else {
drupal_set_message(t('The e-mail address %mail is allowed.', array(
'%mail' => $form_state['values']['value'],
)));
}
}