? log-field.patch
? sites/localhost
Index: modules/book/book.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book.module,v
retrieving revision 1.395
diff -u -p -r1.395 book.module
--- modules/book/book.module	7 Nov 2006 07:01:05 -0000	1.395
+++ modules/book/book.module	14 Nov 2006 03:15:16 -0000
@@ -232,13 +232,6 @@ function book_form(&$node) {
   );
   $form['body_filter']['format'] = filter_form($node->format);
 
-  $form['log'] = array(
-    '#type' => 'textarea',
-    '#title' => t('Log message'),
-    '#weight' => 5,
-    '#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.'),
-  );
-
   if (user_access('administer nodes')) {
     $form['weight'] = array('#type' => 'weight',
       '#title' => t('Weight'),
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.727
diff -u -p -r1.727 node.module
--- modules/node/node.module	12 Nov 2006 19:56:07 -0000	1.727
+++ modules/node/node.module	14 Nov 2006 03:15:18 -0000
@@ -1954,6 +1954,17 @@ function node_form($node, $form_values =
   }
   $form['#node'] = $node;
 
+  // Add a log field if the "Create new revisions" option is checked,
+  // or if the current user has the ability to check that option.
+  if ($node->revision || user_access('administer nodes')) {
+    $form['log'] = array(
+      '#type' => 'textarea',
+      '#title' => t('Log message'),
+      '#weight' => 20,
+      '#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.'),
+    );
+  }
+
   // Node author information for administrators
   $form['author'] = array(
     '#type' => 'fieldset',
