function chado_delete_phylotree
3.x tripal_chado.phylotree.api.inc | chado_delete_phylotree($phylotree_id) |
Deletes a phylotree record from Chado.
Parameters
$phylotree_id:
Return value
TRUE on success, FALSE on failure.
Related topics
1 call to chado_delete_phylotree()
- tripal_delete_phylotree in tripal_chado/
api/ modules/ tripal_chado.module.DEPRECATED.api.inc - Deletes a phylotree record from Chado.
File
- tripal_chado/
api/ modules/ tripal_chado.phylotree.api.inc, line 537 - Provides API functions specificially for managing phylogenetic and taxonomic tree records in Chado.
Code
function chado_delete_phylotree($phylotree_id) {
// If we don't have a phylotree id for this node then this isn't a node of
// type chado_phylotree or the entry in the chado_phylotree table was lost.
if (!$phylotree_id) {
tripal_report_error('tripal_phylogeny', TRIPAL_ERROR,
'Please provide a phylotree_id to delete a tree.');
return FALSE;
}
// Remove the tree
$values = array('phylotree_id' => $phylotree_id);
return chado_delete_record('phylotree', $values);
}