You are here

function nodejs_send_user_message_multiple in Node.js integration 7

Same name and namespace in other branches
  1. 8 nodejs.module \nodejs_send_user_message_multiple()
  2. 6 nodejs.module \nodejs_send_user_message_multiple()

Send a message to multiple users.

Parameters

string|array $uids: A list of uid seperated by comma (,) or an array of uids

string $subject:

string $body:

1 call to nodejs_send_user_message_multiple()
nodejs_send_role_message in ./nodejs.module
Send a message to users in a role.
1 string reference to 'nodejs_send_user_message_multiple'
nodejs_drush_command in ./nodejs.drush.inc
Implements hook_drush_command().

File

./nodejs.module, line 228

Code

function nodejs_send_user_message_multiple($uids, $subject, $body) {
  if (!is_array($uids)) {
    $uids = explode(',', $uids);
  }
  foreach ($uids as $uid) {
    nodejs_send_user_message($uid, $subject, $body);
  }
}