diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-04-14 14:32:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-04-14 14:32:59 +0000 |
commit | 13a888c0f8510653932390808cd345471c5a1d2b (patch) | |
tree | 90ef3224012a770993c7bce398a2042f7429a181 | |
parent | 9a142b1fd77b8dc857f24c01415fe0271b1ca1eb (diff) | |
download | brdo-13a888c0f8510653932390808cd345471c5a1d2b.tar.gz brdo-13a888c0f8510653932390808cd345471c5a1d2b.tar.bz2 |
- More inline with other form descriptions.
-rw-r--r-- | modules/node.module | 3 | ||||
-rw-r--r-- | modules/node/node.module | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index 4802f612b..be974062b 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1626,7 +1626,8 @@ function node_form_array($node) { // Node author information $form['author'] = array('#type' => 'fieldset', '#title' => t('Authoring information'), '#collapsible' => TRUE, '#collapsed' => TRUE, '#weight' => 20); $form['author']['name'] = array('#type' => 'textfield', '#title' => t('Authored by'), '#maxlength' => 60, '#autocomplete_path' => 'user/autocomplete', '#default_value' => $node->name ? $node->name : '', '#weight' => -1, '#description' => t('Leave blank for %anonymous.', array('%anonymous' => theme('placeholder', variable_get('anonymous', 'Anonymous'))))); - $form['author']['date'] = array('#type' => 'textfield', '#title' => t('Authored on'), '#maxlength' => 25, '#description' => t('Format: %time (leave blank to use the time of form submission)', array('%time' => $node->date))); + $form['author']['date'] = array('#type' => 'textfield', '#title' => t('Authored on'), '#maxlength' => 25, '#description' => t('Format: %time. Leave blank to use the time of form submission.', array('%time' => $node->date))); + if (isset($node->nid)) { $form['author']['date']['#default_value'] = $node->date; } diff --git a/modules/node/node.module b/modules/node/node.module index 4802f612b..be974062b 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1626,7 +1626,8 @@ function node_form_array($node) { // Node author information $form['author'] = array('#type' => 'fieldset', '#title' => t('Authoring information'), '#collapsible' => TRUE, '#collapsed' => TRUE, '#weight' => 20); $form['author']['name'] = array('#type' => 'textfield', '#title' => t('Authored by'), '#maxlength' => 60, '#autocomplete_path' => 'user/autocomplete', '#default_value' => $node->name ? $node->name : '', '#weight' => -1, '#description' => t('Leave blank for %anonymous.', array('%anonymous' => theme('placeholder', variable_get('anonymous', 'Anonymous'))))); - $form['author']['date'] = array('#type' => 'textfield', '#title' => t('Authored on'), '#maxlength' => 25, '#description' => t('Format: %time (leave blank to use the time of form submission)', array('%time' => $node->date))); + $form['author']['date'] = array('#type' => 'textfield', '#title' => t('Authored on'), '#maxlength' => 25, '#description' => t('Format: %time. Leave blank to use the time of form submission.', array('%time' => $node->date))); + if (isset($node->nid)) { $form['author']['date']['#default_value'] = $node->date; } |