function node_accessibility_menu in Node Accessibility 7
Implements hook_menu().
File
- ./
node_accessibility.module, line 71 - Module file for the node accessibility project.
Code
function node_accessibility_menu() {
$items = array();
$items['node/%node/accessibility'] = array(
'title' => "Accessibility",
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_accessibility_accessibility_tab_page',
1,
),
'access callback' => 'node_accessibility_access_accessibility_tab',
'access arguments' => array(
1,
),
'file' => 'pages.inc',
'file path' => drupal_get_path('module', 'node_accessibility') . '/includes',
'weight' => 8,
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
);
$items['node/%node/accessibility/%/revision'] = array(
'title' => "Accessibility",
'load arguments' => array(
3,
3,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_accessibility_accessibility_tab_page',
1,
3,
),
'access callback' => 'node_accessibility_access_accessibility_tab',
'access arguments' => array(
1,
),
'file' => 'pages.inc',
'file path' => drupal_get_path('module', 'node_accessibility') . '/includes',
);
return $items;
}