function hosting_platform_menu in Hosting 7.4
Same name and namespace in other branches
- 6.2 platform/hosting_platform.module \hosting_platform_menu()
- 7.3 platform/hosting_platform.module \hosting_platform_menu()
Implements hook_menu().
File
- platform/
hosting_platform.module, line 31 - Platform node type definition.
Code
function hosting_platform_menu() {
$items = array();
$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',
),
);
$items['node/%node/platform-edit'] = array(
'title' => 'Codebase Settings',
'page callback' => 'hosting_platform_edit_form_on_site_page',
'page arguments' => array(
1,
),
'access callback' => 'hosting_platform_edit_form_on_site_page_access',
'access arguments' => array(
'update',
1,
),
'weight' => 0,
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
'file' => 'node.pages.inc',
'file path' => drupal_get_path('module', 'node'),
'weight' => -98,
);
return $items;
}