Posted By

troynt on 06/20/10



Versions (?)

Remove Comment Preview Button in Drupal 6

 / Published in: PHP


  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  


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


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 for more details

You need to login to post a comment.