You are here

function hosting_menu in Hosting 7.4

Same name and namespace in other branches
  1. 5 hosting.module \hosting_menu()
  2. 6.2 hosting.module \hosting_menu()
  3. 7.3 hosting.module \hosting_menu()

Implements hook_menu().

File

./hosting.module, line 73
Hosting module.

Code

function hosting_menu() {
  global $user;
  $items = array();
  $items['hosting/disabled'] = array(
    'title' => 'Site disabled',
    'page callback' => 'hosting_disabled_site',
    'access arguments' => array(
      'access disabled sites',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['hosting/js'] = array(
    'title' => 'ahah callback',
    'page callback' => 'hosting_js_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['hosting/maintenance'] = array(
    'title' => 'Site maintenance',
    'page callback' => 'hosting_site_maintenance',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/hosting'] = array(
    'title' => 'Hosting',
    'description' => 'Configure and manage the hosting system',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hosting_features_form',
    ),
    'access arguments' => array(
      'administer hosting',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/hosting/features'] = array(
    'title' => 'Features',
    'description' => 'Configure the exposed functionality of the Hosting system',
    'weight' => -100,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hosting_features_form',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access arguments' => array(
      'administer hosting features',
    ),
  );
  $items['admin/hosting/queues'] = array(
    'title' => 'Queues',
    'description' => 'Configure the frequency that cron, backup and task events are process',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hosting_queues_configure',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer hosting queues',
    ),
  );
  $items['admin/hosting/settings'] = array(
    'title' => 'Settings',
    'description' => 'Configure general Hosting settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hosting_settings',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer hosting settings',
    ),
  );
  $items['hosting/queues'] = array(
    'page callback' => 'hosting_queues',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'access task logs',
    ),
  );
  $items['hostmaster'] = array(
    'title' => 'Hostmaster',
    'description' => 'View and configure the Hostmaster site.',
    'page callback' => 'hosting_menu_hostmaster_redirect',
    'access callback' => 'hosting_menu_hostmaster_access',
    'menu_name' => 'main-menu',
    'type' => MENU_NORMAL_ITEM,
    'weight' => 100,
  );
  return $items;
}