function lightning_api_form_oauth2_token_settings_alter in Lightning API 8.4
Same name and namespace in other branches
- 8 lightning_api.module \lightning_api_form_oauth2_token_settings_alter()
- 8.2 lightning_api.module \lightning_api_form_oauth2_token_settings_alter()
- 8.3 lightning_api.module \lightning_api_form_oauth2_token_settings_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
lightning_api.module, line 125 - Contains hook implementations for Lightning API.
Code
function lightning_api_form_oauth2_token_settings_alter(array &$form, FormStateInterface $form_state, $form_id) {
// The key generation form provided by Simple OAuth doesn't generate unique
// key names (or allow the user to override the names) and doesn't allow the
// user to specify the location of the OpenSSL config file. Specifically, the
// fact that the names are always the same could cause problems on systems
// where the home directory stores keys for more than one application. So hide
// the link to that form and users can continue to use the one provided by
// Lightning API.
$form['actions']['generate']['keys']['#access'] = FALSE;
}