function cacheflush_menu in CacheFlush 7.3
Same name and namespace in other branches
- 7 cacheflush.module \cacheflush_menu()
- 7.2 cacheflush.module \cacheflush_menu()
Implements hook_menu().
File
- ./
cacheflush.module, line 11 - Cacheflush module.
Code
function cacheflush_menu() {
/* * ************** Preset's **************** */
$items['admin/cacheflush'] = array(
'title' => 'Cache Flush',
'type' => MENU_NORMAL_ITEM,
'description' => 'List cache clear presets',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'cacheflush clear cache',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/cacheflush/clearall'] = array(
'title' => 'Clear All',
'description' => 'Clear all cache.',
'page callback' => '_cacheflush_clear_all',
'weight' => -50,
'access arguments' => array(
'cacheflush clear cache',
),
'file' => 'cacheflush.api.inc',
);
$items['admin/cacheflush/%'] = array(
'title' => 'Clear preset',
'description' => 'Clear preset cache.',
'page callback' => 'cacheflush_clear_preset_menu_callback',
'page arguments' => array(
2,
),
'access arguments' => array(
'cacheflush clear cache',
),
'file' => 'cacheflush.api.inc',
);
return $items;
}