You are here

function advagg_relocate_admin_form_advagg_admin_operations_form in Advanced CSS/JS Aggregation 7.2

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 in advagg_relocate/advagg_relocate.module
Implements hook_form_FORM_ID_alter().

File

advagg_relocate/advagg_relocate.admin.inc, line 519
Admin page callbacks for the advagg relocate module.

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',
    ),
  );
}