You are here

function pmtimetracking_pmticket_change in Drupal PM (Project Management) 7

Implements hook_pmticket_change().

File

pmtimetracking/pmtimetracking.module, line 216
Main module functions for PM Timetracking.

Code

function pmtimetracking_pmticket_change($ticket_nid, $ticket_title) {
  $num_updated = db_update('pmtimetracking')
    ->fields(array(
    'ticket_title' => $ticket_title,
  ))
    ->condition('ticket_nid', $ticket_nid, '=')
    ->condition('ticket_title', $ticket_title, '<>')
    ->execute();
  if ($num_update) {
    watchdog('PM Timetracking:', "{$num_updated} number of entries updated silently.");
  }
}