node_page_edit

Versions
5 – 7
node_page_edit($node)

Menu callback; presents the node editing form, or redirects to delete confirmation.

Code

modules/node/node.pages.inc, line 12

<?php
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[FIELD_LANGUAGE_NONE][0]['value'])), PASS_THROUGH);
  return drupal_get_form($node->type . '_node_form', $node);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.