function form_test_form_user_register_form_alter
Same name in other branches
- 7.x modules/simpletest/tests/form_test.module \form_test_form_user_register_form_alter()
- 9 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_user_register_form_alter()
- 10 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_user_register_form_alter()
- 11.x core/modules/system/tests/modules/form_test/form_test.module \form_test_form_user_register_form_alter()
Implements hook_form_FORM_ID_alter() for the registration form.
File
-
core/
modules/ system/ tests/ modules/ form_test/ form_test.module, line 81
Code
function form_test_form_user_register_form_alter(&$form, FormStateInterface $form_state) {
$form['test_rebuild'] = [
'#type' => 'submit',
'#value' => t('Rebuild'),
'#submit' => [
'form_test_user_register_form_rebuild',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.