Remove Comment Preview Button in Drupal 6


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.