function node_convert_menu in Node Convert 6
Same name and namespace in other branches
- 5 node_convert.module \node_convert_menu()
- 7 node_convert.module \node_convert_menu()
Implementation of hook_menu().
File
- ./
node_convert.module, line 62 - The node_convert module converts nodes from one type to another.
Code
function node_convert_menu() {
$items = array();
$items['node/%node/convert'] = array(
'title' => 'Convert',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_convert_conversion_form',
1,
),
'access callback' => 'node_convert_check_access',
'access arguments' => array(
1,
),
'weight' => 6,
'type' => MENU_LOCAL_TASK,
);
$items['admin/build/node_convert_templates'] = array(
'title' => 'Node Convert templates',
'description' => 'List of templates used for converting nodes using Actions and Node Operations.',
'page callback' => 'node_convert_templates',
'access arguments' => array(
'administer conversion',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/build/node_convert_templates/list'] = array(
'title' => 'List',
'access arguments' => array(
'administer conversion',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/build/node_convert_templates/add'] = array(
'title' => 'Add template',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_convert_add_template',
),
'access arguments' => array(
'administer conversion',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/build/node_convert_templates/%'] = array(
'title' => 'Template info',
'page callback' => 'node_convert_template_info',
'page arguments' => array(
3,
),
'access arguments' => array(
'administer conversion',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/node_convert_templates/delete/%'] = array(
'title' => 'Delete template',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_convert_template_delete_confirm',
4,
),
'access arguments' => array(
'administer conversion',
),
'type' => MENU_CALLBACK,
);
return $items;
}