Mercurial > defr > drupal > core
comparison modules/node/node.pages.inc @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | 165d43f946a8 |
children | 4347c45bb494 |
comparison
equal
deleted
inserted
replaced
10:6f15c9d74937 | 11:589fb7c02327 |
---|---|
1 <?php | 1 <?php |
2 // $Id: node.pages.inc,v 1.28.2.1 2008/02/27 19:44:44 goba Exp $ | 2 // $Id: node.pages.inc,v 1.28.2.2 2008/09/17 07:42:35 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 */ |
228 | 228 |
229 // Add the buttons. | 229 // Add the buttons. |
230 $form['buttons'] = array(); | 230 $form['buttons'] = array(); |
231 $form['buttons']['submit'] = array( | 231 $form['buttons']['submit'] = array( |
232 '#type' => 'submit', | 232 '#type' => 'submit', |
233 '#access' => !variable_get('node_preview', 0) || (!form_get_errors() && isset($form_state['node_preview'])), | |
233 '#value' => t('Save'), | 234 '#value' => t('Save'), |
234 '#weight' => 5, | 235 '#weight' => 5, |
235 '#submit' => array('node_form_submit'), | 236 '#submit' => array('node_form_submit'), |
236 ); | 237 ); |
237 $form['buttons']['preview'] = array( | 238 $form['buttons']['preview'] = array( |