function tripal_featuremap_uninstall
2.x tripal_featuremap.install | tripal_featuremap_uninstall() |
3.x tripal_featuremap.install | tripal_featuremap_uninstall() |
1.x tripal_featuremap.install | tripal_featuremap_uninstall() |
Implementation of hook_uninstall().
Related topics
File
- tripal_featuremap/
tripal_featuremap.install, line 43 - @todo Add file header description
Code
function tripal_featuremap_uninstall() {
drupal_uninstall_schema('tripal_featuremap');
// Get the list of nodes to remove
$sql_lib_id = "SELECT nid, vid " .
"FROM {node} " .
"WHERE type='chado_featuremap'";
$result = db_query($sql_lib_id);
while ($node = db_fetch_object($result)) {
node_delete($node->nid);
}
}