You are here

function cache_actions_action_clear_cache_form in Cache Actions 6.2

Same name and namespace in other branches
  1. 6 cache_actions.rules.inc \cache_actions_action_clear_cache_form()

Action to clear cache configuration form.

File

./cache_actions.rules.inc, line 612
This file provides the rules integration for this module.

Code

function cache_actions_action_clear_cache_form($settings, &$form) {
  $settings += array(
    'tables' => '',
  );
  $cache_bins = _cache_actions_get_cache_bins();
  $form['settings']['tables'] = array(
    '#type' => 'select',
    '#title' => t('Cache bins'),
    '#multiple' => TRUE,
    '#required' => TRUE,
    '#options' => $cache_bins,
    '#default_value' => $settings['tables'],
    '#description' => t('The cache bins to be cleared.'),
  );
}