function msnf_menu in Multistep Nodeform 6
Same name and namespace in other branches
- 7 msnf.module \msnf_menu()
Implementation of hook_menu().
Return value
An array of menu items.
File
- ./
msnf.module, line 24 - Main functions for module "Multistep Nodeform".
Code
function msnf_menu() {
$items = array();
foreach (node_get_types() as $type) {
$type_name = $type->type;
$content_type = msnf_content_types($type_name);
$type_url_str = $content_type['url_str'];
$items['admin/content/node-type/' . $type_url_str . '/steps'] = array(
'title' => 'Manage steps',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'msnf_step_overview_form',
$type_name,
),
'access arguments' => array(
'administer content types',
),
'file' => 'includes/msnf.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
$items['admin/content/node-type/' . $type_url_str . '/steps/%'] = array(
'title' => 'Edit step',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'msnf_step_edit_form',
$type_name,
5,
),
'access arguments' => array(
'administer content types',
),
'file' => 'includes/msnf.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/content/node-type/' . $type_url_str . '/steps/%/remove'] = array(
'title' => 'Remove step',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'msnf_step_remove_step',
$type_name,
5,
),
'access arguments' => array(
'administer content types',
),
'file' => 'includes/msnf.admin.inc',
'type' => MENU_CALLBACK,
);
}
return $items;
}