function tripal_featuremap_form_alter

2.x tripal_featuremap.module tripal_featuremap_form_alter(&$form, &$form_state, $form_id)
3.x tripal_featuremap.module tripal_featuremap_form_alter(&$form, &$form_state, $form_id)
1.x tripal_featuremap.module tripal_featuremap_form_alter(&$form, &$form_state, $form_id)

Implementation of hook_form_alter()

_state _id

Parameters

$form:

Related topics

File

tripal_featuremap/tripal_featuremap.module, line 260
Integrates the Chado Map module with Drupal Nodes & Views

Code

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

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

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