diff options
Diffstat (limited to 'modules/node/node.pages.inc')
-rw-r--r-- | modules/node/node.pages.inc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index a66352bf2..e5167805c 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -230,12 +230,9 @@ function node_form($form, &$form_state, $node) { '#title' => t('Authored on'), '#maxlength' => 25, '#description' => t('Format: %time. The date format is YYYY-MM-DD and %timezone is the timezone offset from UTC. Leave blank to use the time of form submission.', array('%time' => !empty($node->date) ? $node->date : format_date($node->created, 'custom', 'Y-m-d H:i:s O'), '%timezone' => !empty($node->date) ? $node->date : format_date($node->created, 'custom', 'O'))), + '#default_value' => !empty($node->date) ? $node->date : '', ); - if (isset($node->date)) { - $form['author']['date']['#default_value'] = $node->date; - } - // Node options for administrators $form['options'] = array( '#type' => 'fieldset', @@ -265,14 +262,6 @@ function node_form($form, &$form_state, $node) { '#default_value' => $node->sticky, ); - // These values are used when the user has no administrator access. - foreach (array('uid', 'created') as $key) { - $form[$key] = array( - '#type' => 'value', - '#value' => $node->$key, - ); - } - // Add the buttons. $form['actions'] = array( '#type' => 'container', |