Needs review
Project:
AJAX Chat
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
27 Sep 2013 at 15:48 UTC
Updated:
27 Sep 2013 at 15:48 UTC
As I planned yesterday, I went on to add a hook mechanism so that custom channels implementation can be made the Drupal way.
We now have the following:
hook_ajaxchat_all_channels_alter(&$customAjaxChat, &$allChannels)
hook_ajaxchat_all_channels_alter(&$customAjaxChat, &$channels)
Currently, the customAjaxChat object is given only to trim channel names, and it would be good to find an alternative (I am delaying this because the best work around I am think of would require longer implementation than just drupal_alter calls) - hook_ajaxchat_all_channels_alter calls shouldn't have to take care of trimming.
So I am assigning this to you cameronbprince, so you can review and check if it didn't break anything I would be unaware of.