function node_convert_menu in Node Convert 5
Same name and namespace in other branches
- 6 node_convert.module \node_convert_menu()
- 7 node_convert.module \node_convert_menu()
Implementation of hook_menu().
File
- ./
node_convert.module, line 24
Code
function node_convert_menu($may_cache) {
$items = array();
if ($may_cache) {
}
else {
$items[] = array(
'path' => 'admin/content/convert_bulk',
'title' => t('Convert nodes'),
'description' => t('Convert selected nodes from one node type, to another.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
"node_convert_bulk",
),
'access' => user_access('administer content types'),
'type' => MENU_NORMAL_ITEM,
);
if (arg(0) == 'node' && is_numeric(arg(1))) {
$items[] = array(
'path' => 'node/' . arg(1) . '/convert',
'title' => t('Convert'),
'callback' => 'node_convert_form_page',
'callback arguments' => array(
arg(1),
),
'access' => user_access('administer content types'),
'weight' => 6,
'type' => MENU_LOCAL_TASK,
);
}
}
return $items;
}