function db_maintenance_menu in DB Maintenance 6
Same name and namespace in other branches
- 8.2 db_maintenance.module \db_maintenance_menu()
- 5.2 db_maintenance.module \db_maintenance_menu()
- 5 db_maintenance.module \db_maintenance_menu()
- 6.2 db_maintenance.module \db_maintenance_menu()
- 7.2 db_maintenance.module \db_maintenance_menu()
- 7 db_maintenance.module \db_maintenance_menu()
Implementation of hook_menu().
Return value
array
File
- ./
db_maintenance.module, line 47 - Optimizes database tables during cron runs.
Code
function db_maintenance_menu() {
$items = array();
$items['admin/settings/db_maintenance'] = array(
'title' => 'DB maintenance',
'description' => 'Executes a cron-based query to optimize database tables.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'db_maintenance_admin_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['db_maintenance/optimize'] = array(
'page callback' => 'db_maintenance_optimize_tables_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
return $items;
}