function Notifications_Event::update_counter in Notifications 6.4
Same name and namespace in other branches
- 7 notifications.event.inc \Notifications_Event::update_counter()
Update event counter
1 call to Notifications_Event::update_counter()
- Notifications_Event::trigger in includes/
notifications_event.class.inc - Trigger event. Save, run queue query, etc...
File
- includes/
notifications_event.class.inc, line 385 - Drupal Notifications Framework - Default class file
Class
- Notifications_Event
- Message destination class
Code
function update_counter($value = NULL) {
if (isset($value)) {
$this->counter = $value;
}
db_query('UPDATE {notifications_event} SET counter = %d WHERE eid = %d', $this->counter, $this->eid);
}