You are here

function pmtimetracking_pmproject_change_hierarchy in Drupal PM (Project Management) 7

Implements hook_pmproject_change_hierarchy().

File

pmtimetracking/pmtimetracking.module, line 232
Main module functions for PM Timetracking.

Code

function pmtimetracking_pmproject_change_hierarchy($project_nid, $organization_nid, $organization_title) {
  $query = db_update('pmtimetracking')
    ->fields(array(
    'organization_nid' => $organization_nid,
    'organization_title' => $organization_title,
  ))
    ->condition('project_nid', $project_nid)
    ->execute();
}