Tripal
|
Functions | |
chado_add_node_form_dbxrefs (&$form, &$form_state, $details) | |
chado_add_node_form_dbxrefs_add_button_validate ($form, &$form_state) | |
chado_add_node_form_dbxrefs_add_button_submit ($form, &$form_state) | |
chado_add_node_form_dbxrefs_remove_button_validate ($form, $form_state) | |
chado_add_node_form_dbxrefs_remove_button_submit (&$form, &$form_state) | |
chado_add_node_form_dbxrefs_create_dbxref_formstate_array ($form, &$form_state) | |
theme_chado_add_node_form_dbxrefs_table ($variables) | |
chado_retrieve_node_form_dbxrefs ($node) | |
chado_update_node_form_dbxrefs ($node, $details, $retrieved_dbxrefs=FALSE) | |
API to manage the Chado dbxref table for various Tripal Node Types
How To Use:
chado_add_node_form_dbxrefs_add_button_submit | ( | $form, | |
& | $form_state | ||
) |
Called by the add button in chado_add_node_form_dbxrefs
Create an array of additional dbxrefs in the form state. This array will then be used to rebuild the form in subsequent builds
chado_add_node_form_dbxrefs_add_button_validate | ( | $form, | |
& | $form_state | ||
) |
Validate the user input for creating a new dbxref Called by the add button in chado_add_node_form_dbxrefs
chado_add_node_form_dbxrefs_create_dbxref_formstate_array | ( | $form, | |
& | $form_state | ||
) |
Creates an array in form_state containing the existing addtl_dbxrefs. This array is then modified by the add/remove buttons and used as a source for rebuilding the form. This function get's called at each button (add and remove) button submits the first time one of the button's is clicked to instantiates the $form_state['chado_additional_dbxrefs'] array
$form_state['chado_additional_dbxrefs'] = array( '[db_id]-[version]' => array( 'db_id' => [the db.db_id value] 'db_name' => [the db.name value] 'dbxref_id' => [the dbxref.dbxref_id value, or temporary value if it doesn't yet exists], 'version' => [the dbxref.version value], 'accession' => [the dbxref.accession value], ), );
chado_add_node_form_dbxrefs_remove_button_submit | ( | & | $form, |
& | $form_state | ||
) |
Remove the correct dbxref from the form Called by the many remove buttons in chado_add_node_form_dbxrefs
chado_add_node_form_dbxrefs_remove_button_validate | ( | $form, | |
$form_state | |||
) |
Called by the many remove buttons in chado_add_node_form_dbxrefs
theme_chado_add_node_form_dbxrefs_table | ( | $variables | ) |
Function to theme the add/remove dbxrefs form into a table