function pmnote_update in Drupal PM (Project Management) 7
Implements hook_update().
File
- pmnote/
pmnote.module, line 349 - Functions for the PM Note module.
Code
function pmnote_update($node) {
_pmnote_beforesave($node);
if ($node->revision) {
pmnote_insert($node);
}
else {
db_update('pmnote')
->fields(array(
'organization_nid' => $node->organization_nid,
'organization_title' => $node->organization_title,
'project_nid' => $node->project_nid,
'project_title' => $node->project_title,
'task_nid' => $node->task_nid,
'task_title' => $node->task_title,
))
->condition('vid', $node->vid)
->execute();
}
}