function flush_page_cache_menu in Flush page cache 7
Same name and namespace in other branches
- 6 flush_page_cache.module \flush_page_cache_menu()
Implements hook_menu().
File
- ./
flush_page_cache.module, line 22 - Easing the pain when you need to flush...Drupal's cache.
Code
function flush_page_cache_menu() {
$items = array();
// Admin settings
$items['admin/config/development/flush_page_cache'] = array(
'title' => 'Flush page cache',
'description' => "Easing the pain when you need to flush...Drupal's cache.",
'page callback' => 'drupal_get_form',
'page arguments' => array(
'flush_page_cache_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'flush_page_cache.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
// Add a link under admin_menu.
$items['admin_menu/flush-page-cache'] = array(
'page callback' => 'flush_page_cache_admin_menu_flush_cache',
'access arguments' => array(
'flush page cache',
),
'file' => 'flush_page_cache.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}