Hello! This is my first post and I am a beginner. Thank you for such a great forum. After searching for a long time, I found that the current methods for removing the preview function altogether by creating a new module do not work on Drupal 5.3. Does anyone know of a way to disable the preview with 5.3 or am I possibly doing something wrong?

I am creating a module with the following:

function killpreview_form_alter($form_id, &$form) {
  if ($form_id == 'killpreview_node_form') {
    unset($form['preview']);
  }
}

but it isn't removing the preview button. Thanks for your help.

Comments

MikeMoirano’s picture

Just bumping, hopeful for a reply

henrrrik’s picture

It should work as long as the form id is correct.

Henrik Sjökvist // Kollegorna

MikeMoirano’s picture

and it does!

droople’s picture

Did you end up releasing the module.

I need this feature desperately

francewhoa’s picture

Hiding PREVIEW button with css (D6.x): http://drupal.org/node/194890#comment-1161353

---

How to contribute to Drupal.

Loving back your Drupal community result in multiple benefits for you