function openid_connect_admin_form_validate in OpenID Connect / OAuth client 7
Validation handler for openid_connect_admin_form.
File
- includes/
openid_connect.admin.inc, line 100 - Administrative UI and functions for the OpenID Connect module.
Code
function openid_connect_admin_form_validate($form, &$form_state) {
$enabled_clients = $form_state['values']['openid_connect_clients_enabled'];
$enabled_clients = array_filter($enabled_clients);
foreach ($enabled_clients as $client_name) {
// Give the client a chance to validate the submitted values.
$client = openid_connect_get_client($client_name);
$fake_form = $form['clients'][$client_name];
$fake_form_state = array(
'values' => $form_state['values']['clients'][$client_name],
);
$error_element_base = 'clients][' . $client_name . '][';
$client
->settingsFormValidate($fake_form, $fake_form_state, $error_element_base);
}
}