subj.

Comments

amitaibu’s picture

Patches are welcome...

nooysters’s picture

Issue summary:View changes

Here is a simple solution.

/**
* Implements hook_entity_insert().
* Create a realtime growl notification of every message on insert.
*/
function portal_messages_entity_insert($entity, $type) {
  if($type === 'message') {
    nodejs_send_user_message($entity->uid, '', $entity->getText());
  }
}