function tripal_project_form_alter

2.x tripal_project.module tripal_project_form_alter(&$form, &$form_state, $form_id)
3.x tripal_project.module tripal_project_form_alter(&$form, &$form_state, $form_id)

Implementation of hook_form_alter().

_state _id

Parameters

$form:

Related topics

File

tripal_project/tripal_project.module, line 231
Integrates the Chado Project tables with Drupal Nodes & Views

Code

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

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

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