You are here

function _pmperson_aftersave in Drupal PM (Project Management) 7

Post-processing for PM Person node (after saving).

2 calls to _pmperson_aftersave()
pmperson_insert in pmperson/pmperson.module
Implements hook_insert().
pmperson_update in pmperson/pmperson.module
Implements hook_update().

File

pmperson/pmperson.module, line 495

Code

function _pmperson_aftersave(&$node) {
  global $user;
  if ($user->uid == $node->user_uid) {
    $user->pmperson_nid = $node->nid;
    $user->pmorganization_nid = $node->organization_nid;
  }
}