You are here

function hosting_alias_menu in Hosting 7.4

Same name and namespace in other branches
  1. 5 alias/hosting_alias.module \hosting_alias_menu()
  2. 6.2 alias/hosting_alias.module \hosting_alias_menu()
  3. 7.3 alias/hosting_alias.module \hosting_alias_menu()

Implements hook_menu().

File

alias/hosting_alias.module, line 22
Allow sites to have domain aliases that they can be accessed with.

Code

function hosting_alias_menu() {
  $items['admin/hosting/aliases'] = array(
    'title' => 'Site aliases',
    'description' => 'Configure aliases for hosted sites',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hosting_alias_settings',
    ),
    'access arguments' => array(
      'administer hosting aliases',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['hosting_alias/js'] = array(
    'title' => 'Javascript Alias Form',
    'page callback' => 'hosting_alias_form_js',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}