Mercurial > defr > drupal > core
comparison modules/node/node.pages.inc @ 3:165d43f946a8 6.1
Drupal 6.1
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:29:21 +0100 |
parents | c1f4ac30525a |
children | 589fb7c02327 |
comparison
equal
deleted
inserted
replaced
2:85b5b336180c | 3:165d43f946a8 |
---|---|
1 <?php | 1 <?php |
2 // $Id: node.pages.inc,v 1.28 2008/02/03 19:26:10 goba Exp $ | 2 // $Id: node.pages.inc,v 1.28.2.1 2008/02/27 19:44:44 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Page callbacks for adding, editing, deleting, and revisions management for content. | 6 * Page callbacks for adding, editing, deleting, and revisions management for content. |
7 */ | 7 */ |
9 | 9 |
10 /** | 10 /** |
11 * Menu callback; presents the node editing form, or redirects to delete confirmation. | 11 * Menu callback; presents the node editing form, or redirects to delete confirmation. |
12 */ | 12 */ |
13 function node_page_edit($node) { | 13 function node_page_edit($node) { |
14 drupal_set_title($node->title); | 14 drupal_set_title(check_plain($node->title)); |
15 return drupal_get_form($node->type .'_node_form', $node); | 15 return drupal_get_form($node->type .'_node_form', $node); |
16 } | 16 } |
17 | 17 |
18 function node_add_page() { | 18 function node_add_page() { |
19 $item = menu_get_item(); | 19 $item = menu_get_item(); |