function optimizedb_menu in OptimizeDB 6
Same name and namespace in other branches
- 7 optimizedb.module \optimizedb_menu()
Implements hook_menu().
File
- ./
optimizedb.module, line 15 - Database Optimization.
Code
function optimizedb_menu() {
$items['admin/settings/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/settings/optimizedb/settings'] = array(
'title' => 'Database Optimization',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/optimizedb/hide'] = array(
'title' => 'Hide notification',
'page callback' => 'optimizedb_hide_notification',
'access arguments' => array(
'administer optimizedb settings',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/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;
}