Add a cache clear button to the advagg operations form.
1 call to advagg_relocate_admin_form_advagg_admin_operations_form()
- advagg_relocate_form_advagg_admin_operations_form_alter dans advagg_relocate/
advagg_relocate.module - Implements hook_form_FORM_ID_alter().
Fichier
-
advagg_relocate/
advagg_relocate.admin.inc, line 519
Code
function advagg_relocate_admin_form_advagg_admin_operations_form(&$form, &$form_state) {
$form['drastic_measures']['flush_relocate_cache'] = array(
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#title' => t('Clear the advagg relocate cache'),
'#description' => t('Rarely needed but useful if a download was corrupted.'),
);
$form['drastic_measures']['flush_relocate_cache']['advagg_flush'] = array(
'#type' => 'submit',
'#value' => t('Flush AdvAgg Relocate Cache'),
'#submit' => array(
'advagg_relocate_flush_cache_button',
),
);
}