You are here

function expire_menu in Cache Expiration 6

Same name and namespace in other branches
  1. 7.2 expire.module \expire_menu()
  2. 7 expire.module \expire_menu()

Implementation of hook_menu().

File

./expire.module, line 18
Provides logic for page cache expiration

Code

function expire_menu() {
  $items = array();
  $items['admin/settings/performance/default'] = array(
    'title' => 'Performance',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file path' => drupal_get_path('module', 'system'),
  );
  $items['admin/settings/performance/expire'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Cache Expiration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'expire_admin_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file path' => drupal_get_path('module', 'expire'),
    'file' => 'expire.admin.inc',
    'weight' => 1,
  );
  return $items;
}