function notifications_lite_build in Notifications 6.3
Build message array from parameters
Special params are
- language = language object
- action = notifications lite action
1 call to notifications_lite_build()
- notifications_lite_send in notifications_lite/
notifications_lite.module - Sends out a notification for a user
File
- notifications_lite/
notifications_lite.module, line 138 - Simple notifications API
Code
function notifications_lite_build($subject, $body = '', $action = 'default', $language = NULL, $params = array()) {
return array(
'type' => 'notifications-lite',
'mailkey' => 'notifications-lite-' . $action,
'subject' => $subject,
'body' => empty($body) ? $subject : $body,
'language' => $language ? $language : language_default(),
'action' => $action,
'params' => $params,
);
}