This project is not covered by Drupal’s security advisory policy.

"Node.js Rules Chatterbox” allows users create real time notification blocks with the help of rules.

Node.js Rules Chatterbox provides a general purpose integration between Drupal (php) and a Node.js backend. Essentially it’s a way to push chatter messages via whatever is happening on your Drupal site and display them in realtime on a block. Along with a customizable hook (described below under “API"), events can be, as the name implies, triggered via Rules. This allows your site to integrate the realtime speed of Node.js with the structured content of Drupal.

Installation

1. Copy and paste the module in your sites modules folder.
2. Ensure you have enabled and configured the dependency modules.
http://drupal.org/project/nodejs.
3. Enable the module at admin/modules.

Usage

1. After installation, create block channel from configuration page.
2. Create a Rule with action to notify to nodejs channel. (admin/config/workflow/rules)
3. Once that event occurs your configured message will be displayed in relevant channel block

API

1. Call nodejs_rules_chatterbox_notify($message,$uid = '') in your module to send a custom notification.
@param StdClass $message
->channel - Channel name.
->message - Message.
@param $uid
Userid of sender. Default value is logged in user.

2. Implement hook_chatterbox_notify_alter($message) in your module, to modify the notification message before it get published.

This feature was originally developed for CoghlanCapital.com by Int3c.com Custom Drupal Development.

Project information

Releases