function pmtimetracking_pmproject_change in Drupal PM (Project Management) 7
Implements hook_pmproject_change().
File
- pmtimetracking/
pmtimetracking.module, line 181 - Main module functions for PM Timetracking.
Code
function pmtimetracking_pmproject_change($project_nid, $project_title) {
$num_updated = db_update('pmtimetracking')
->fields(array(
'project_title' => $project_title,
))
->condition('project_nid', $project_nid, '=')
->condition('project_title', $project_title, '<>')
->execute();
if ($num_update) {
watchdog('PM Timetracking:', "{$num_updated} number of entries updated silently.");
}
}