By MikeMoirano on
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
Just bumping, hopeful for a
Just bumping, hopeful for a reply
It should work as long as
It should work as long as the form id is correct.
Henrik Sjökvist // Kollegorna
Thanks
and it does!
Did you release the module??
Did you end up releasing the module.
I need this feature desperately
Hiding PREVIEW button with css (D6.x)
Hiding PREVIEW button with css (D6.x): http://drupal.org/node/194890#comment-1161353
---
How to contribute to Drupal.