function node_convert_menu in Node Convert 7
Same name and namespace in other branches
- 5 node_convert.module \node_convert_menu()
- 6 node_convert.module \node_convert_menu()
Implements hook_menu().
File
- ./
node_convert.module, line 71
Code
function node_convert_menu() {
// @ignore druplart_array_init
$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,
'file' => NODE_CONVERT_FORMS_INC,
);
$items['admin/structure/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,
'file' => NODE_CONVERT_ADMIN_INC,
);
$items['admin/structure/node_convert_templates/list'] = array(
'title' => 'List',
'access arguments' => array(
'administer conversion',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/structure/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,
'file' => NODE_CONVERT_ADMIN_INC,
);
$items['admin/structure/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,
'file' => NODE_CONVERT_ADMIN_INC,
);
$items['admin/structure/node_convert_templates/edit/%node_convert_template'] = array(
'title' => 'Edit template',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_convert_add_template',
4,
),
'access arguments' => array(
'administer conversion',
),
'type' => MENU_CALLBACK,
'file' => NODE_CONVERT_ADMIN_INC,
);
$items['admin/structure/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,
'file' => NODE_CONVERT_ADMIN_INC,
);
return $items;
}