You are here

function pmtimetracking_pmtask_change_hierarchy in Drupal PM (Project Management) 7

Implements hook_pmtask_change_hierarchy().

File

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

Code

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