function cacheflush_install in CacheFlush 7
Same name and namespace in other branches
- 7.2 cacheflush.install \cacheflush_install()
Implements hook_install().
File
- ./
cacheflush.install, line 11 - Install, update, and uninstall functions for the cacheflush module.
Code
function cacheflush_install() {
$core = array(
'cache' => array(
'is_table' => TRUE,
'description' => "Generic cache table for caching things not separated out...",
'category' => 'core',
),
'cache_path' => array(
'is_table' => TRUE,
'description' => "Cache table for path alias lookup.",
'category' => 'core',
),
'cache_filter' => array(
'is_table' => TRUE,
'description' => "Cache table for the Filter module to store already...",
'category' => 'core',
),
'cache_bootstrap' => array(
'is_table' => TRUE,
'description' => "Cache table for data required to bootstrap Drupal, may be...",
'category' => 'core',
),
'cache_page' => array(
'is_table' => TRUE,
'description' => "Cache table used to store compressed pages for anonymous...",
'category' => 'core',
),
'cache_form' => array(
'is_table' => TRUE,
'description' => "Cache table for the form system to store recently built...",
'category' => 'core',
),
'cache_menu' => array(
'is_table' => TRUE,
'description' => "Cache table for the menu system to store router...",
'functions' => array(
'node_types_rebuild',
'menu_rebuild',
),
'category' => 'core',
),
'cache_update' => array(
'is_table' => TRUE,
'description' => "Cache table for the Update module to store information...",
'category' => 'core',
),
'query-strings' => array(
'is_table' => FALSE,
'description' => "Change query-strings on css/js files to enforce reload for all users.",
'functions' => array(
'_drupal_flush_css_js',
),
'category' => 'functions',
),
'css' => array(
'is_table' => FALSE,
'description' => "Empty the css cache.",
'functions' => array(
'drupal_clear_css_cache',
),
'category' => 'functions',
),
'js' => array(
'is_table' => FALSE,
'description' => "Empty the js cache.",
'functions' => array(
'drupal_clear_js_cache',
),
'category' => 'functions',
),
'registry' => array(
'is_table' => FALSE,
'description' => "Empty the registry cache.",
'functions' => array(
'registry_rebuild',
),
'category' => 'functions',
),
'theme' => array(
'is_table' => FALSE,
'description' => "Rebuild the theme data.",
'functions' => array(
'system_rebuild_theme_data',
'drupal_theme_rebuild',
),
'category' => 'functions',
),
'entity_info' => array(
'is_table' => FALSE,
'description' => "Empty the entity info cache.",
'functions' => array(
'entity_info_cache_clear',
),
'category' => 'functions',
),
'actions_synchronize' => array(
'is_table' => FALSE,
'description' => "Synchronize to catch any actions that were added or removed.",
'functions' => array(
'actions_synchronize',
),
'category' => 'functions',
),
'update_bootstrap' => array(
'is_table' => FALSE,
'description' => "Rebuild the bootstrap module list. We do this here so that developers can get new hook_boot() implementations registered without having to write a hook_update_N() function.",
'functions' => array(
'_system_update_bootstrap_status',
),
'category' => 'functions',
),
'update_bootstrap' => array(
'is_table' => FALSE,
'description' => "Rebuild the bootstrap module list. We do this here so that developers can get new hook_boot() implementations registered without having to write a hook_update_N() function.",
'functions' => array(
'_system_update_bootstrap_status',
),
'category' => 'functions',
),
'admin_menu' => array(
'is_table' => FALSE,
'description' => "The administration menu clear cache function.",
'functions' => array(
'admin_menu_flush_caches',
),
'category' => 'often',
),
'ctools' => array(
'is_table' => FALSE,
'description' => "The Ctools clear cache function",
'functions' => array(
'ctools_flush_caches',
),
'category' => 'often',
),
);
cacheflush_predefined_presets();
variable_set('cacheflush_global_config', $core);
}