function tripal_pub_importer_delete
2.x tripal_pub.pub_importers.inc | tripal_pub_importer_delete($import_id) |
3.x tripal_chado.pub_importers.inc | tripal_pub_importer_delete( |
1.x pub_importers.inc | tripal_pub_importer_delete($pub_import_id) |
Deletes a publication importer.
1 string reference to 'tripal_pub_importer_delete'
- tripal_pub_menu in tripal_pub/
tripal_pub.module - Implements hook_menu().
File
- tripal_pub/
includes/ tripal_pub.pub_importers.inc, line 839 - Management of importers
Code
function tripal_pub_importer_delete($import_id) {
$args = array(':import_id' => $import_id);
$sql = "DELETE FROM {tripal_pub_import} WHERE pub_import_id = :import_id";
$success = db_query($sql, $args);
if ($success) {
drupal_set_message('Publication importer deleted.');
drupal_goto('admin/tripal/chado/tripal_pub/import_list');
}
else {
drupal_set_message('Could not delete publication importer.', 'error');
}
}