function keycloak_form_openid_connect_admin_settings_alter in Keycloak OpenID Connect 8
Implements hook_form_FORM_ID_alter() for openid_connect_admin_settings.
File
- ./
keycloak.module, line 64 - Hook implementations of the Keycloak module.
Code
function keycloak_form_openid_connect_admin_settings_alter(array &$form, FormStateInterface $form_state, $form_id) {
// Add our own submit handler to preprocess Keycloak setting values.
if (!$form_state
->get('keycloak_processed')) {
array_unshift($form['#validate'], 'keycloak_form_openid_connect_admin_settings_validate');
array_unshift($form['#submit'], 'keycloak_form_openid_connect_admin_settings_submit');
$form_state
->set('keycloak_processed', TRUE);
}
}