When adding or editing a node (ie page, jans node, etc.) the "Log message:" always appears. It can be confusing for users because they don't know where to then add the main content. How can I turn it off so it doesn't appear for anyone?
I would have thought there would be an option under admin/settings/content-types/ but I'm not seeing one.
Thanks!

Comments

zzJames’s picture

you could open form.inc (includes folder)

line 710

if ($element['#title'] == "Log message") {return;}

works for me although not sure if any side effects.

francewhoa’s picture

That can be done using an override theme function. In Drupal 5.x add the following to your 'template.php' file:

        /**
        * Override node form
        */
        function phptemplate_node_form($form) {
          // Remove 'Log message' text area
          $form['log']['#access'] = FALSE;
          return drupal_render($form);
        }

Source: http://drupal.org/node/204515

--

How to contribute to Drupal.

Loving back your Drupal community result in multiple benefits for you  
francewhoa’s picture

Removing my comment

Loving back your Drupal community result in multiple benefits for you  
venutip’s picture

In Drupal 6, ['log'] is a child of ['revision_information'], so you would want to change the second line to the following:

$form['revision_information']['#access'] = FALSE; // Sledgehammer approach

That said, instead of denying access to everyone, specify which users are allowed to access the field using user_access(). For instance:

$form['revision_information']['#access'] = user_access('administer nodes');

Using this snippet, users with the "administer nodes" permission can access this field, but other users cannot.

maverick14’s picture

This works as well in Drupal 6 for me. Cool!

bobbungee’s picture

covenantd,

You could go to http://example.com/admin/settings/error-reporting (Administer -> Site Configuration -> Error Reporting), and change 'Write Errors To The Log And To The Screen' to just ''Write Errors To The Log'.