You are here

function _cacheflush_get_table_list in CacheFlush 7

Same name and namespace in other branches
  1. 7.2 cacheflush.preset.inc \_cacheflush_get_table_list()

Return a list of used cache tables on the curent Drupal instalation.

Return value

array List cache tables.

1 call to _cacheflush_get_table_list()
cacheflush_preset_form in ./cacheflush.preset.inc
Callback function after drupal_get_form().

File

./cacheflush.preset.inc, line 228
Cacheflush module add/edit form for presets.

Code

function _cacheflush_get_table_list() {
  $core_tables = variable_get('cacheflush_global_config', array());
  $custome_tables = array_flip(module_invoke_all('flush_caches'));
  $tables_info = array();
  foreach ($custome_tables as $key => $value) {
    $schema = drupal_get_schema($key);
    $schema = drupal_get_schema_unprocessed($schema['module'], 'cache_bootstrap');
    $tables_info[$key] = array(
      'is_table' => TRUE,
      'description' => t($schema[$key]['description']),
      'category' => 'custom',
    );
  }
  return array_merge($core_tables, $tables_info);
}