function node_page_edit in Drupal 7
Same name and namespace in other branches
- 5 modules/node/node.module \node_page_edit()
- 6 modules/node/node.pages.inc \node_page_edit()
Menu callback; presents the node editing form.
1 string reference to 'node_page_edit'
- node_menu in modules/
node/ node.module - Implements hook_menu().
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);
}