function user_element_info_alter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/user.module \user_element_info_alter()
- 9 core/modules/user/user.module \user_element_info_alter()
Implements hook_element_info_alter().
File
- core/
modules/ user/ user.module, line 1055 - 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';
}
}