function notifications_queue_update in Notifications 6.3
Same name and namespace in other branches
- 6 notifications.cron.inc \notifications_queue_update()
- 6.2 notifications.cron.inc \notifications_queue_update()
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_update()
- notifications_queue_done in ./
notifications.cron.inc - Mark queue rows as done
File
- ./
notifications.cron.inc, line 672
Code
function notifications_queue_update($params, $updates) {
$values = _messaging_query_conditions('notifications_queue', $updates);
$where = notifications_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);
}