Remove preview buttton from Form

Public

Remove preview buttton from Node Form

Get raw version
php
  1. /**
  2. * Form Alter hook
  3. */
  4. function yourmodulename_form_alter(&$form, $form_state, $form_id) {
  5. if ($form_id == 'your_node_form') {
  6. $form['buttons']['preview'] = FALSE;
  7. }
  8. }