Drupal: hide Log Message textarea in node forms

tags: Drupal   php snippets  
drupal tags: user interaction   phptemplate  

If like me you are not a big fan of the Log Message functionality of Drupal (the one that adds a "Log Message" textarea at the bottom of each node form), then here is a small php snippet override to add to the template.php file of your theme to definitely hide the Message Log:

/**
* Override node form and remove "Log message" textarea
*/
function phptemplate_node_form($form) {
  $form['log']['#access'] = FALSE;
  return drupal_render($form);
}

Make a good use of it ;)


Similar:

Hide message on feeds

Is it possible to hide only messages when nodes are imported with feeds

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <p> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <img> <hr>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

Archives

February 2012
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
26272829
PureDivs Drupal Themes Conversions
PureDivs Conversione Temi Drupal