You are here

function hosting_platform_menu in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 platform/hosting_platform.module \hosting_platform_menu()
  2. 7.3 platform/hosting_platform.module \hosting_platform_menu()

Implementation of hook_menu().

File

platform/hosting_platform.module, line 31
Platform node type definition.

Code

function hosting_platform_menu() {
  $items = array();
  $items['hosting/platforms'] = array(
    'title' => 'Platforms',
    'description' => 'List of platforms',
    'page callback' => 'hosting_platform_listing',
    'access arguments' => array(
      'view platform',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['hosting/platforms/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['hosting/platforms/add'] = array(
    'title' => 'Add platform',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_goto',
    'page arguments' => array(
      'node/add/platform',
    ),
    'access callback' => 'node_access',
    'access arguments' => array(
      'create',
      'platform',
    ),
  );
  return $items;
}