function tripal_library_form_alter

2.x tripal_library.module tripal_library_form_alter(&$form, &$form_state, $form_id)
3.x tripal_library.module tripal_library_form_alter(&$form, &$form_state, $form_id)

Implementation of hook_form_alter().

_state _id

Parameters

$form:

Related topics

File

tripal_library/tripal_library.module, line 267
Integrates the Chado Library module with Drupal Nodes & Views

Code

function tripal_library_form_alter(&$form, &$form_state, $form_id) {

  if ($form_id == "chado_library_node_form") {
    // turn of preview button for insert/updates
    $form['actions']['preview']['#access'] = FALSE;

    //remove the body field
    unset($form['body']);
  }
}