You are here

function pmticket_pmtask_change_hierarchy in Drupal PM (Project Management) 7

Implements hook_pmtask_change_hierarchy().

File

pmticket/pmticket.module, line 218
1: Hooks 2: Access functions

Code

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