You are here

function invoice_form_alter in Invoice 6

Same name and namespace in other branches
  1. 7 invoice_form.inc \invoice_form_alter()

Implementation of hook_form_alter()

_state

Parameters

array $form:

string $form_id:

File

./invoice_form.inc, line 785
Invoice module

Code

function invoice_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'invoice_node_form') {
    unset($form['revision_information']);
    unset($form['buttons']['preview']);
  }
}