You are here

function optimizedb_menu in OptimizeDB 7

Same name and namespace in other branches
  1. 6 optimizedb.module \optimizedb_menu()

Implements hook_menu().

File

./optimizedb.module, line 22
Database Optimization.

Code

function optimizedb_menu() {
  $items['admin/config/development/optimizedb'] = array(
    'title' => 'Database Optimization',
    'description' => 'Optimizing the site database and clearing tables cache_form.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'optimizedb_admin',
    ),
    'access arguments' => array(
      'administer optimizedb settings',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/development/optimizedb/settings'] = array(
    'title' => 'Database Optimization',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/development/optimizedb/hide'] = array(
    'title' => 'Hide notification',
    'page callback' => 'optimizedb_hide_notification',
    'access arguments' => array(
      'administer optimizedb settings',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/development/optimizedb/list_tables'] = array(
    'title' => 'List of tables in the database',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'optimizedb_list_tables',
    ),
    'access arguments' => array(
      'administer optimizedb settings',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}