function tripal_stock_form_alter
2.x tripal_stock.module | tripal_stock_form_alter(&$form, &$form_state, $form_id) |
3.x tripal_stock.module | tripal_stock_form_alter(&$form, &$form_state, $form_id) |
Implementation of hook_form_alter().
_state _id
Parameters
$form:
Related topics
File
- legacy/
tripal_stock/ tripal_stock.module, line 386 - Basic functionality for stocks
Code
function tripal_stock_form_alter(&$form, &$form_state, $form_id) {
// turn of preview button for insert/updates
if ($form_id == "chado_stock_node_form") {
$form['actions']['preview']['#access'] = FALSE;
//remove the body field
unset($form['body']);
}
}