You are here

function addanother_menu in Add Another 5

Same name and namespace in other branches
  1. 6 addanother.module \addanother_menu()
  2. 7.2 addanother.module \addanother_menu()
  3. 7 addanother.module \addanother_menu()

Implementation of hook_menu().

File

./addanother.module, line 34
Presents users with an option to create another node of the same type after a node is added.

Code

function addanother_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/addanother',
      'title' => 'Add Another',
      'description' => 'Modify which node types display the Add Another message.',
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'addanother_admin',
      ),
      'access' => user_access('access administration pages'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}