You are here

function hosting_menu in Hosting 6.2

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

Implementation of hook_menu().

File

./hosting.module, line 26
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' => t('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['welcome'] = array(
    'title' => 'Welcome',
    'page callback' => 'hosting_welcome',
    'access callback' => TRUE,
    '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',
    ),
  );
  return $items;
}