function tripal_organism_form_alter
2.x tripal_organism.module | tripal_organism_form_alter(&$form, &$form_state, $form_id) |
3.x tripal_organism.module | tripal_organism_form_alter(&$form, &$form_state, $form_id) |
Implementation of hook_form_alter().
_state _id
Parameters
$form:
Related topics
File
- tripal_organism/
tripal_organism.module, line 259 - Integrates the Chado Organism module with Drupal Nodes & Views
Code
function tripal_organism_form_alter(&$form, &$form_state, $form_id) {
// turn of preview button for insert/updates
if ($form_id == "chado_organism_node_form") {
$form['actions']['preview']['#access'] = FALSE;
//remove the body field
unset($form['body']);
}
}