You are here

function pmproject_pmperson_change in Drupal PM (Project Management) 7

Implements hook_pmperson_change().

File

pmproject/pmproject.module, line 210

Code

function pmproject_pmperson_change($person_nid, $person_title) {

  // Manager field
  db_update('pmproject')
    ->fields(array(
    'manager_title' => $person_title,
  ))
    ->condition('manager_nid', $person_nid)
    ->execute();

  // Assigned field
  db_update('pmproject')
    ->fields(array(
    'assigned_title' => $person_title,
  ))
    ->condition('assigned_nid', $person_nid)
    ->execute();
}