You are here

function pmnote_pmtask_change_hierarchy in Drupal PM (Project Management) 7

Implements hook_pmtask_change_hierarchy().

File

pmnote/pmnote.module, line 185
Functions for the PM Note module.

Code

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