function tripal_contact_form_alter
2.x tripal_contact.module | tripal_contact_form_alter(&$form, &$form_state, $form_id) |
3.x tripal_contact.module | tripal_contact_form_alter(&$form, &$form_state, $form_id) |
1.x tripal_contact.module | tripal_contact_form_alter(&$form, &$form_state, $form_id) |
Implementation of hook_form_alter().
Related topics
File
- tripal_contact/
tripal_contact.module, line 217 - Functions related to general module functionality.
Code
function tripal_contact_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == "chado_contact_node_form") {
// turn of preview button for insert/updates
$form['actions']['preview']['#access'] = FALSE;
//remove the body field
unset($form['body']);
}
}