Posted By

troynt on 06/20/10


Tagged

drupal6


Versions (?)

Remove Comment Preview Button in Drupal 6


 / Published in: PHP
 

URL: http://drupal.org/node/57842#comment-1784284

  1. /**
  2. * Implementation of hook_form_alter
  3. **/
  4. function MODULE_NAME_form_alter(&$form, $form_state, $form_id) {
  5. if ($form_id = 'comment_form') {
  6. unset($form['preview']);
  7. }
  8. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: shirishv on February 10, 2011

By default, Drupal is configured to force anonymous users to preview their comments before posting them. To enable users to post without previewing their comment, you might think you'd access:

Administer > Content Management > Content Settings > Post Settings

or

Administer > Comments > Configure

But it doesn't work this way

In Drupal 6, the comment preview settings are tied to each content type. Visit:

Administer > Content Management > Content Types

Refer to this url http://www.99tutes.com/content/drupal-disable-required-comment-preview.html for more details

You need to login to post a comment.