You are here

function pmperson_insert in Drupal PM (Project Management) 7

Implements hook_insert().

1 call to pmperson_insert()
pmperson_update in pmperson/pmperson.module
Implements hook_update().

File

pmperson/pmperson.module, line 406

Code

function pmperson_insert($node) {
  _pmperson_beforesave($node);
  db_insert('pmperson')
    ->fields(array(
    'vid' => $node->vid,
    'nid' => $node->nid,
    'organization_nid' => $node->organization_nid,
    'organization_title' => $node->organization_title,
    'prefix' => $node->prefix,
    // Ignore use of $node->email rather than $node->mail.
    // @ignore coder_tough_love_8
    'email' => $node->email,
    'www' => $node->www,
    'phone' => $node->phone,
    'im' => $node->im,
    'user_uid' => $node->user_uid,
  ))
    ->execute();
  _pmperson_aftersave($node);
}