You are here

function apdqc_menu in Asynchronous Prefetch Database Query Cache 7

Implements hook_menu().

File

./apdqc.module, line 87
Asynchronous Prefetch Database Query Cache module.

Code

function apdqc_menu() {
  $file_path = drupal_get_path('module', 'apdqc');
  $items['admin/config/development/performance/default'] = array(
    'title' => 'Performance',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file path' => drupal_get_path('module', 'system'),
    'weight' => -10,
  );
  $items['admin/config/development/performance/apdqc'] = array(
    'title' => 'APDQC',
    'description' => 'Configuration for Asynchronous Prefetch Database Query Cache.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'apdqc_admin_settings_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer site configuration',
    ),
    'file path' => $file_path,
    'file' => 'apdqc.admin.inc',
    'weight' => 1,
  );
  $items['admin/config/development/performance/apdqc/default'] = array(
    'title' => 'Configuration',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/development/performance/apdqc/operations'] = array(
    'title' => 'Operations',
    'description' => 'Convert table types.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'apdqc_admin_operations_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer site configuration',
    ),
    'file path' => $file_path,
    'file' => 'apdqc.admin.inc',
    'weight' => 20,
  );
  return $items;
}