function helper_admin_menu_cache_info in Helper 7
Implements hook_admin_menu_cache_info().
File
- ./
helper.admin_menu.inc, line 11 - Administration menu integration for the Helper module.
Code
function helper_admin_menu_cache_info() {
$caches['bootstrap'] = array(
'title' => t('Bootstrap'),
'callback' => 'helper_admin_menu_cache_flush_bootstrap',
);
$caches['entity'] = array(
'title' => t('Entity'),
'callback' => 'helper_admin_menu_cache_flush_entity',
);
$caches['field'] = array(
'title' => t('Field'),
'callback' => 'field_cache_clear',
);
if (module_exists('migrate')) {
$caches['migrate'] = array(
'title' => t('Migrate'),
'callback' => 'helper_admin_menu_cache_flush_migrate',
);
}
if (module_exists('views')) {
$caches['views'] = array(
'title' => t('Views'),
'callback' => 'views_invalidate_cache',
);
}
if (module_exists('simpletest')) {
$caches['simpletest'] = array(
'title' => t('Simpletest'),
'callback' => 'simpletest_clean_environment',
);
}
return $caches;
}