function addanother_menu in Add Another 7
Same name and namespace in other branches
- 5 addanother.module \addanother_menu()
- 6 addanother.module \addanother_menu()
- 7.2 addanother.module \addanother_menu()
Implement hook_menu().
File
- ./
addanother.module, line 45 - 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/config/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;
}