function notifications_lite_drupal_post in Notifications 6.3
Post message using Drupal mail
Parameters
unknown_type $accounts:
unknown_type $message:
unknown_type $params:
Return value
int Number of messages sent
1 call to notifications_lite_drupal_post()
- notifications_lite_send in notifications_lite/
notifications_lite.module - Sends out a notification for a user
File
- notifications_lite/
notifications_lite.module, line 123 - Simple notifications API
Code
function notifications_lite_drupal_post($accounts, $message, $params) {
foreach ($accounts as $account) {
$language = user_preferred_language($account);
$result[] = drupal_mail('notifications_lite', $message['mailkey'], $account->mail, $language, $message);
}
return count($result);
}