function oa_notifications_delete_specific in Open Atrium Notifications 7.2
Delete specific notification
Parameters
int $source_id: The source id (node id)
int $id: The target id (e.g. node id).
string $type: The target type (e.g. 'group', 'team').
1 call to oa_notifications_delete_specific()
- oa_notifications_remove_callback in ./
oa_notifications.module - Remove notification callback.
File
- ./
oa_notifications.module, line 506
Code
function oa_notifications_delete_specific($source_id, $id, $type) {
db_delete('oa_notifications')
->condition('source_id', $source_id)
->condition('target_id', $id)
->condition('target_type', $type)
->execute();
}