function realname_form_user_admin_settings_alter in Real Name 7
Implements hook_form_FORM_ID_alter().
File
- ./
realname.module, line 495 - Provides token-based name displays for users.
Code
function realname_form_user_admin_settings_alter(&$form, &$form_state, $form_id) {
$form['email_admin_created']['user_mail_register_admin_created_body']['#element_validate'][] = 'realname_username_raw_token_validate';
$form['email_no_approval_required']['user_mail_register_no_approval_required_body']['#element_validate'][] = 'realname_username_raw_token_validate';
$form['email_activated']['settings']['user_mail_status_activated_body']['#element_validate'][] = 'realname_username_raw_token_validate';
}