function tripal_stock_update_relationship
1.x tripal_stock-relationships.inc | tripal_stock_update_relationship($stock_relationship_id, $subject_id, $cvterm_id, $object_id) |
Related topics
1 call to tripal_stock_update_relationship()
- tripal_stock_edit_ALL_relationships_form_submit in tripal_stock/
includes/ tripal_stock-relationships.inc
File
- tripal_stock/
includes/ tripal_stock-relationships.inc, line 447 - @todo Add file header description
Code
function tripal_stock_update_relationship($stock_relationship_id, $subject_id, $cvterm_id, $object_id) {
chado_query(
"UPDATE {stock_relationship} SET subject_id=%d, type_id=%d, object_id=%d WHERE stock_relationship_id=%d",
$subject_id,
$cvterm_id,
$object_id,
$stock_relationship_id
);
}