You are here

function pmtask_pmproject_change_hierarchy in Drupal PM (Project Management) 7

Implements hook_pmproject_change_hierarchy().

File

pmtask/pmtask.module, line 194

Code

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