Skip to content

Commit

Permalink
Issue #1664070 by tim.plunkett, mjonesdinero: Add documentation to no…
Browse files Browse the repository at this point in the history
…de_add_page function
  • Loading branch information
jhodgdon-drp committed Jul 9, 2012
1 parent 828cd90 commit 552cc18
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/node/node.pages.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ function node_page_edit($node) {
return drupal_get_form($node->type . '_node_form', $node);
}

/**
* Page callback: Displays add content links for available content types.
*
* Redirects to node/add/[type] if only one content type is available.
*
* @see node_menu()
*/
function node_add_page() {
$item = menu_get_item();
$content = system_admin_menu_block($item);
Expand Down

0 comments on commit 552cc18

Please sign in to comment.