function tripal_bulk_loader_insert
2.x tripal_bulk_loader.chado_node.inc | tripal_bulk_loader_insert($node) |
3.x tripal_bulk_loader.chado_node.inc | tripal_bulk_loader_insert($node) |
1.x tripal_bulk_loader.module | tripal_bulk_loader_insert($node) |
Implements hook_insert(). Insert the data from the node form on Create content
D7 Changes: seems to need db_insert; not recommended to change $node
Related topics
File
- tripal_bulk_loader/
includes/ tripal_bulk_loader.chado_node.inc, line 242 - Tripal Bulk Loader Node functionality (jobs).
Code
function tripal_bulk_loader_insert($node) {
db_insert('tripal_bulk_loader')->fields(array(
'nid' => $node->nid,
'loader_name' => trim($node->loader_name),
'template_id' => $node->template_id,
'file' => trim($node->file),
'file_has_header' => $node->has_header,
'job_status' => 'Initialized',
'keep_track_inserted' => $node->keep_track_inserted
))->execute();
drupal_set_message(t('After reviewing the details, please Submit this Job (by clicking the "Submit Job" button below). No data will be loaded until the submitted job is reached in the queue.'));
}