$obj1, 'value' => $val1), * array('cvterm' => $obj2, 'value' => $val2), * ... etc * ); * The 'cvterm' key should have as a value an object with these properties: 'name', 'cvterm_id', 'definition'. * @param $instructions * An optional additional set of instructions for the form properties. * @param $fset_title * A title for the property field set. The default is 'Additional Details'. * @ingroup tripal_properties_api */ function tripal_core_properties_form(&$form, &$form_state, $prop_table, $id_field, $cv_name, $available_props, $id = NULL, $exclude = array(), $include = array(), $instructions = '', $fset_title = 'Additional Details') { // $available_props is now created by the form based on the cv // $exclude and $include are not yet supported $details = array( 'property_table' => $prop_table, 'base_foreign_key' => $id_field, 'base_key_value' => $id, 'cv_name' => $cv_name, 'fieldset_title' => $fset_title, 'additional_instructions' => $instructions ); tripal_api_chado_node_properties_form($form, $form_state, $details); } /** * This function is used in a hook_insert, hook_update for a node form * when the properties form has been added to the form. It retrieves all of the properties * and returns them in an array of the format: * * $properties[][] = * * This array can then be used for inserting or updating properties using the API call * tripal_hook_insert_property() * * @param $node * @param $cvname * The name of the controlled vocabulary that the properties belong to * * @return * A properties array * * @ingroup tripal_properties_api */ function tripal_core_properties_form_retreive($node, $cv_name) { return tripal_api_chado_node_properties_form_retreive($node); }