You are here

function pmnote_insert in Drupal PM (Project Management) 7

Implements hook_insert().

1 call to pmnote_insert()
pmnote_update in pmnote/pmnote.module
Implements hook_update().

File

pmnote/pmnote.module, line 329
Functions for the PM Note module.

Code

function pmnote_insert($node) {
  _pmnote_beforesave($node);
  db_insert('pmnote')
    ->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,
  ))
    ->execute();
}