You are here

function pmtask_insert in Drupal PM (Project Management) 7

Implements hook_insert().

1 call to pmtask_insert()
pmtask_update in pmtask/pmtask.module
Implements hook_update().

File

pmtask/pmtask.module, line 468

Code

function pmtask_insert($node) {
  _pmtask_beforesave($node);
  db_insert('pmtask')
    ->fields(array(
    'vid' => $node->vid,
    'nid' => $node->nid,
    'stepno' => $node->stepno,
    'taskcategory' => $node->taskcategory,
    'taskstatus' => $node->taskstatus,
    'taskpriority' => $node->taskpriority,
    'organization_nid' => $node->organization_nid,
    'organization_title' => $node->organization_title,
    'project_nid' => $node->project_nid,
    'project_title' => $node->project_title,
    'parent_nid' => $node->parent_nid,
    'weight' => $node->weight,
    'durationunit' => $node->durationunit,
    'duration' => $node->duration,
    'pricemode' => $node->pricemode,
    'price' => $node->price,
    'currency' => $node->currency,
    'assigned_nid' => $node->assigned_nid,
    'assigned_title' => $node->assigned_title,
  ))
    ->execute();
}