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

Posted By: killjim01 on October 18, 2014

red bottom heels oakley sunglasses wholesale chi flat iron,chi hair strighteners toms wedges michael kors sale marc jacobs,marc jacobs handbags,marc jacobs bags,marc jacobs outlet moncler jackets christian louboutin,christian louboutin shoes,christian louboutin outlet fitflop coach outlet stores ugg shoes,uggs for cheap,uggs outlet,uggs for kids,ugg boots sale,uggs sale,uggs on sale,ugg gloves,ugg bailey button,ugg boots cheap,ugg moccasins,uggs canada,uggs for women,fake uggs,ugg boots,ugg uk,ugg boots on sale coach factory outlet coach cyber monday 2014,coach cyber monday,cyber monday 2014,cyber monday deals,cyber monday sales,cyber monday,louis vuitton cyber monday 2014,louis vuitton cyber monday,michael kors cyber monday 2014,michael kors cyber monday

You need to login to post a comment.