You are here

function pmticket_insert in Drupal PM (Project Management) 7

Implements hook_insert().

1 call to pmticket_insert()
pmticket_update in pmticket/pmticket.module
Implements hook_update().

File

pmticket/pmticket.module, line 464
1: Hooks 2: Access functions

Code

function pmticket_insert($node) {
  _pmticket_beforesave($node);
  db_insert('pmticket')
    ->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,
    'ticketcategory' => $node->ticketcategory,
    'ticketstatus' => $node->ticketstatus,
    'ticketpriority' => $node->ticketpriority,
    '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();
}