You are here

function hosting_client_menu in Hostmaster (Aegir) 6

Implementation of hook_menu().

File

modules/hosting/client/hosting_client.module, line 586

Code

function hosting_client_menu() {
  $items['node/%node/site/add'] = array(
    'title' => 'Add site',
    'description' => 'Add a site to the current client',
    'page callback' => 'hosting_client_site_form',
    'page arguments' => array(
      'site_node_form',
      1,
    ),
    'access callback' => 'hosting_client_menu_access',
    'access arguments' => array(
      'create site',
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );
  $items['hosting_client/autocomplete'] = array(
    'title' => 'hosting client get client autocomplete',
    'page callback' => 'hosting_client_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/hosting/client'] = array(
    'title' => 'Clients',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hosting_client_configure',
    ),
    'access callback' => '_hosting_client_configure_access',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}