function addanother_menu in Add Another 6
Same name and namespace in other branches
- 5 addanother.module \addanother_menu()
- 7.2 addanother.module \addanother_menu()
- 7 addanother.module \addanother_menu()
Implementation of hook_menu().
File
- ./
addanother.module, line 36 - Presents users with an option to create another node of the same type after a node is added.
Code
function addanother_menu() {
$items = array();
$items['admin/settings/addanother'] = array(
'title' => 'Add another',
'description' => 'Modify which node types display the Add another message.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'addanother_admin',
),
'access arguments' => array(
'administer add another',
),
'type' => MENU_NORMAL_ITEM,
);
$items['node/%/addanother'] = array(
'title' => 'Add another',
'page callback' => 'addanother_goto',
'page arguments' => array(
1,
),
'access callback' => 'addanother_access',
'access arguments' => array(
1,
),
'weight' => 5,
'type' => MENU_LOCAL_TASK,
);
return $items;
}