function tome_static_super_cache_form_system_performance_settings_alter in Tome 8
Implements hook_form_FORM_ID_alter().
File
- modules/
tome_static/ modules/ tome_static_super_cache/ tome_static_super_cache.module, line 99 - Contains functions for the Tome Static Super Cache module.
Code
function tome_static_super_cache_form_system_performance_settings_alter(array &$form, FormStateInterface $form_state) {
$form['tome_static_super_cache'] = [
'#type' => 'details',
'#title' => t('Clear Tome Static Super Cache'),
'#open' => FALSE,
'#weight' => 0,
];
$form['tome_static_super_cache']['tome_static_super_cache_button'] = [
'#type' => 'submit',
'#value' => t('Fully clear caches'),
'#submit' => [
'_tome_static_super_cache_form_system_performance_settings_submit',
],
];
}