function nodejs_send_user_message_multiple in Node.js integration 6
Same name and namespace in other branches
- 8 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.
File
- ./
nodejs.module, line 158
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);
}
}