function hosting_alias_menu

7.x-3.x 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;
}