function tripal_analysis_form_alter

2.x tripal_analysis.module tripal_analysis_form_alter(&$form, &$form_state, $form_id)
3.x tripal_analysis.module tripal_analysis_form_alter(&$form, &$form_state, $form_id)
1.x tripal_analysis.module tripal_analysis_form_alter(&$form, &$form_state, $form_id)

Implementation of hook_form_alter().

File

legacy/tripal_analysis/tripal_analysis.module, line 241
Contains basic functionality for the analysis module.

Code

function tripal_analysis_form_alter(&$form, &$form_state, $form_id) {
  // turn of preview button for insert/updates
  if ($form_id == "chado_analysis_node_form") {
    $form['actions']['preview']['#access'] = FALSE;

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