function nodejs_send_channel_message in Node.js integration 7
Same name and namespace in other branches
- 8 nodejs.module \nodejs_send_channel_message()
- 6 nodejs.module \nodejs_send_channel_message()
Send a message to all users subscribed to a given channel.
1 string reference to 'nodejs_send_channel_message'
- nodejs_drush_command in ./
nodejs.drush.inc - Implements hook_drush_command().
File
- ./
nodejs.module, line 190
Code
function nodejs_send_channel_message($channel, $subject, $body) {
$message = (object) array(
'data' => (object) array(
'subject' => $subject,
'body' => $body,
),
'channel' => $channel,
);
nodejs_enqueue_message($message);
}