function pmtimetracking_insert in Drupal PM (Project Management) 7
Implments hook_insert().
1 call to pmtimetracking_insert()
- pmtimetracking_update in pmtimetracking/
pmtimetracking.module - Implements hook_update().
File
- pmtimetracking/
pmtimetracking.module, line 468 - Main module functions for PM Timetracking.
Code
function pmtimetracking_insert($node) {
_pmtimetracking_beforesave($node);
db_insert('pmtimetracking')
->fields(array(
'vid' => $node->vid,
'nid' => $node->nid,
'organization_nid' => $node->organization_nid,
'organization_title' => $node->organization_title,
'project_nid' => $node->project_nid,
'project_title' => $node->project_title,
'task_nid' => $node->task_nid,
'task_title' => $node->task_title,
'task_stepno' => $node->task_stepno,
'ticket_nid' => $node->ticket_nid,
'ticket_title' => $node->ticket_title,
'duration' => $node->duration,
'billing_duration' => $node->billing_duration,
))
->execute();
}