function tripal_bulk_loader_delete

2.x tripal_bulk_loader.chado_node.inc tripal_bulk_loader_delete($node)
3.x tripal_bulk_loader.chado_node.inc tripal_bulk_loader_delete($node)
1.x tripal_bulk_loader.module tripal_bulk_loader_delete($node)

Implements hook_delete(). Deletes the data when the delete button on the node form is clicked

Related topics

File

tripal_bulk_loader/includes/tripal_bulk_loader.chado_node.inc, line 266
Tripal Bulk Loader Node functionality (jobs).

Code

function tripal_bulk_loader_delete($node) {
  $tables = array();
  $tables[] = 'tripal_bulk_loader';
  $tables[] = 'tripal_bulk_loader_constants';
  $tables[] = 'tripal_bulk_loader_inserted';
  foreach ($tables as $table) {
    db_delete($table)
      ->condition('nid', $node->nid)
      ->execute();
  }
}