Tripal
|
Functions | |
chado_add_node_form_properties (&$form, &$form_state, $details) | |
chado_add_node_form_properties_add_button_validate ($form, &$form_state) | |
chado_add_node_form_properties_add_button_submit ($form, &$form_state) | |
chado_add_node_form_properties_remove_button_validate ($form, &$form_state) | |
chado_add_node_form_properties_remove_button_submit (&$form, &$form_state) | |
chado_add_node_form_properties_ajax_desc ($form, $form_state) | |
chado_add_node_form_properties_create_property_formstate_array ($form, &$form_state) | |
theme_chado_add_node_form_properties ($variables) | |
chado_retrieve_node_form_properties ($node) | |
chado_update_node_form_properties ($node, $details, $retrieved_properties=FALSE) | |
API to manage the chado prop table for various Tripal Node Types
How To Use:
chado_add_node_form_properties_add_button_submit | ( | $form, | |
& | $form_state | ||
) |
Called by the add button in chado_add_node_form_properties
Create an array of properties in the form state. This array will then be used to rebuild the form in subsequent builds
chado_add_node_form_properties_add_button_validate | ( | $form, | |
& | $form_state | ||
) |
Validate the user input for creating a new property Called by the add button in chado_add_node_form_properties
chado_add_node_form_properties_ajax_desc | ( | $form, | |
$form_state | |||
) |
unknown | $form | |
unknown | $form_state |
chado_add_node_form_properties_create_property_formstate_array | ( | $form, | |
& | $form_state | ||
) |
Creates an array in form_state containing the existing properties. 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_properties'] array
$form_state['chado_properties'] = array( '[type_id]-[rank]' => array( 'type_id' => [the cvterm.cvterm_id value] 'type_name' => [the cvterm.name value] 'property_id' => [the property.property_id value, or NULL if it doesn't yet exist], 'value' => [the BASEprop.value value], 'rank' => [the BASEprop.rank value], ), );
chado_add_node_form_properties_remove_button_submit | ( | & | $form, |
& | $form_state | ||
) |
Remove the correct property from the form Called by the many remove buttons in chado_add_node_form_properties
chado_add_node_form_properties_remove_button_validate | ( | $form, | |
& | $form_state | ||
) |
Called by the many remove buttons in chado_add_node_form_properties
theme_chado_add_node_form_properties | ( | $variables | ) |
Function to theme the add/remove properties form into a table