function nodejs_send_user_message_multiple in Node.js integration 8
Same name and namespace in other branches
- 6 nodejs.module \nodejs_send_user_message_multiple()
- 7 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 229
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);
}
}