function user_element_info_alter

Same name in other branches
  1. 9 core/modules/user/user.module \user_element_info_alter()
  2. 10 core/modules/user/user.module \user_element_info_alter()
  3. 11.x core/modules/user/user.module \user_element_info_alter()

Implements hook_element_info_alter().

File

core/modules/user/user.module, line 1316

Code

function user_element_info_alter(array &$types) {
    if (isset($types['password_confirm'])) {
        $types['password_confirm']['#process'][] = 'user_form_process_password_confirm';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.