function patchinfo_form_update_settings_alter in PatchInfo 8.2
Same name and namespace in other branches
- 8 patchinfo.module \patchinfo_form_update_settings_alter()
- 7 patchinfo.module \patchinfo_form_update_settings_alter()
Implements hook_form_FORM_ID_alter() for update_settings().
File
- ./
patchinfo.module, line 101 - Patch Info primary module file.
Code
function patchinfo_form_update_settings_alter(&$form, FormStateInterface $form_state, $form_id) {
$config = \Drupal::config('patchinfo.settings');
$form['patchinfo_exclude_from_update_check'] = [
'#type' => 'textarea',
'#title' => t('Exclude modules from update check'),
'#description' => t('Modules, which should be excluded from the update check, can be listed here. Each entry should use the machine readable name of the module and go on a separate line.'),
'#default_value' => implode("\n", (array) $config
->get('exclude from update check')),
];
$form['#submit'][] = 'patchinfo_update_settings_form_submit';
}