You are here

public static function CommonHookHandler::hookMenu in DB Maintenance 7.2

Implements hook_menu().

1 call to CommonHookHandler::hookMenu()
db_maintenance_menu in ./db_maintenance.module
Implements hook_menu().

File

src/Module/Hook/CommonHookHandler.php, line 73
CommonHookHandler class.

Class

CommonHookHandler
CommonHookHandler class.

Namespace

Drupal\db_maintenance\Module\Hook

Code

public static function hookMenu() {
  $items = array();
  $items['admin/config/system/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 db maintenance',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'db_maintenance.admin.inc',
  );
  $items['db_maintenance/optimize'] = array(
    'page callback' => 'db_maintenance_optimize_tables_page',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer db maintenance',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}