You are here

public static function Notifications_Queue::queue_update in Notifications 6.4

Update queue rows with defined values

@arg $params Parameters to select the queue rows for updating. Array of field => value pairs @arg $update Fields values to update. Array of field => value pairs

1 call to Notifications_Queue::queue_update()
Notifications_Queue::queue_done in includes/notifications_queue.class.inc
Mark queue rows as done

File

includes/notifications_queue.class.inc, line 686

Class

Notifications_Queue
Queue management and processing

Code

public static function queue_update($params, $updates) {
  $values = _messaging_query_conditions('notifications_queue', $updates);
  $where = self::queue_query($params);
  $args = array_merge($values['args'], $where['args']);
  return db_query('UPDATE {notifications_queue} SET ' . implode(', ', $values['conditions']) . ' WHERE ' . implode(' AND ', $where['where']), $args);
}