You are here

function redis_menu in Redis 7.3

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

Implements hook_menu().

File

./redis.module, line 18
Redis module.

Code

function redis_menu() {
  $items = array();
  $items['admin/config/development/performance/cache'] = array(
    'title' => "Cache",
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/development/performance/redis'] = array(
    'title' => "Redis",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'redis_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'redis.admin.inc',
  );
  return $items;
}