You are here

function user_element_info_alter in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/user.module \user_element_info_alter()

Implements hook_element_info_alter().

File

core/modules/user/user.module, line 1077
Enables the user registration and login system.

Code

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