subj.
Patches are welcome...
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()); } }
Comments
Comment #1
amitaibuPatches are welcome...
Comment #2
nooysters CreditAttribution: nooysters commentedHere is a simple solution.
Comment #3
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented