function simplesamlphp_auth_form_user_register_form_alter in simpleSAMLphp Authentication 8.3
Implements hook_form_FORM_ID_alter().
Alters the user register form to include a checkbox signifying the user should be SimpleSAML enabled.
See also
AccountForm::form()
simplesamlphp_auth_user_form_submit()
File
- ./
simplesamlphp_auth.module, line 136 - SimpleSAMLphp authentication module for Drupal.
Code
function simplesamlphp_auth_form_user_register_form_alter(&$form, FormStateInterface $form_state, $form_id) {
simplesamlphp_auth_user_form_includes($form);
$form['simplesamlphp_auth_user_enable']['#default_value'] = TRUE;
}