function oa_notifications_make in Open Atrium Notifications 7.2
Create a notification instance
Parameters
$type:
$id:
$source_type:
$source_id:
Return value
\stdClass
3 calls to oa_notifications_make()
- oa_notifications_add in ./
oa_notifications.module - Add a new notification to a node
- oa_notifications_save_notifications in ./
oa_notifications.module - Saves notifications.
- oa_notification_parse in ./
oa_notifications.module - Helper function to parse notifications from the input field value
File
- ./
oa_notifications.module, line 257
Code
function oa_notifications_make($type, $id, $source_type = 'node', $source_id = 0) {
$n = new stdClass();
$n->source_id = $source_id;
$n->source_type = $source_type;
$n->target_id = $id;
$n->target_type = $type;
return $n;
}