Tripal
|
Functions | |
tripal_bulk_loader_update_constant ($nid, $group_id, $table, $field, $record_id, $field_id, $value) | |
tripal_bulk_loader_has_exposed_fields ($node) | |
tripal_bulk_loader_set_constants_form ($form, &$form_state, $node) | |
tripal_bulk_loader_set_constants_form_validate ($form, $form_state) | |
tripal_bulk_loader_set_constants_form_submit ($form, $form_state) | |
tripal_bulk_loader_edit_constant_set_form ($form, &$form_state, $node, $group_id) | |
tripal_bulk_loader_edit_constant_set_form_submit ($form, &$form_state) | |
tripal_bulk_loader_delete_constant_set_form ($form, &$form_state, $node, $group_id) | |
tripal_bulk_loader_delete_constant_set_form_submit ($form, &$form_state) | |
theme_tripal_bulk_loader_constant_set ($variables) | |
Manages the constants form added to the tripal bulk loader node form
theme_tripal_bulk_loader_constant_set | ( | $variables | ) |
Display a constant set.
$varaibles | An array of variables that are available: -nid: the NID of the bulk loading job node the constants are for. -constants: An array of constants as loaded by tripal_bulk_loader_load(). -template: An object containing the template record with unserialized template_array. -options: An optional array of options. |
tripal_bulk_loader_delete_constant_set_form | ( | $form, | |
& | $form_state, | ||
$node, | |||
$group_id | |||
) |
Delete a constant set (exposed fields in template)
$form_state | The current state of the form |
$node | The node to set constants for |
$group_id | The constant set to delete |
tripal_bulk_loader_delete_constant_set_form_submit | ( | $form, | |
& | $form_state | ||
) |
Delete the current constant set
tripal_bulk_loader_edit_constant_set_form | ( | $form, | |
& | $form_state, | ||
$node, | |||
$group_id | |||
) |
Edit a constant set (exposed fields in template)
$form_state | The current state of the form |
$node | The node to set constants for |
$group_id | The constant set to edit |
tripal_bulk_loader_edit_constant_set_form_submit | ( | $form, | |
& | $form_state | ||
) |
Edit constants in the current constant set
tripal_bulk_loader_has_exposed_fields | ( | $node | ) |
Check if a bulk loading job has exposed constants
tripal_bulk_loader_set_constants_form | ( | $form, | |
& | $form_state, | ||
$node | |||
) |
Set constants (exposed fields in template)
$form_state | The current state of the form |
$node | The node to set constants for |
tripal_bulk_loader_set_constants_form_submit | ( | $form, | |
$form_state | |||
) |
Insert/update the constants associated with this node
tripal_bulk_loader_set_constants_form_validate | ( | $form, | |
$form_state | |||
) |
Validate that the values entered exist in the database if indicated in hte template array
tripal_bulk_loader_update_constant | ( | $nid, | |
$group_id, | |||
$table, | |||
$field, | |||
$record_id, | |||
$field_id, | |||
$value | |||
) |
Inserts/Updates a tripal bulk loading job constant
$nid | The node ID of the the tripal bulk loading job the constant is associated with |
$table | The chado table the constant is associated with |
$field | The chado field the constant is associated with |
$record_id | The index in the template array for this record |
$field_id | The index in the template array for this field |
NOTE: $template_array[$record_id]['table'] = $table and $template_array[$record_id]['fields'][$field_id]['field'] = $field both are included as a means of double-checking the constant still is still in thesame place in the template array. For example, that the template was not edited and the records moved around after the job was submitted but before it was run.