function node_page_edit

node_page_edit($node)

Menu callback; presents the node editing form.

File

modules/node/node.pages.inc, line 11
Page callbacks for adding, editing, deleting, and revisions management for content.

Code

function node_page_edit($node) {
  $type_name = node_type_get_name($node);
  drupal_set_title(t('<em>Edit @type</em> @title', array('@type' => $type_name, '@title' => $node->title)), PASS_THROUGH);
  return drupal_get_form($node->type . '_node_form', $node);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.pages.inc/function/node_page_edit/7.x