Closed (fixed)
Project:
Privatemsg
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Sep 2009 at 20:49 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent
Hi!
If enybody know how to integrate appbar with privatemsg module? It would be nice to see new messages in alerts:)
Comments
Comment #1
icecreamyou commentedMoving to Privatemsg. The (very simple) API is here. Examples of integration are here.
Essentially, the only code required to integrate with Appbar is to insert code like this in places where an alert would be advantageous:
And then this hook should be added to specify what each alert type is for so users can turn them on or off:
Comment #2
barylov commentedThank You! works great! I must learn some PHP;)
Comment #3
icecreamyou commentedTagging to make this easier to find.
Comment #4
berdirI have created a help page with an untested example code, see http://drupal.org/node/646518. Please test and update the page if necessary.
@IceCreamYou: If you want, feel free to add the code to your appbar_default module.
Comment #5
icecreamyou commented@Berdir, appbar_default is intended for core modules. I don't intend to add direct support for other contrib modules since each one should integrate with Appbar individually. However, your solution is fine for now -- Appbar integrates with Rules, Trigger/Actions, and Activity in order to support as many modules as possible, and hopefully soon that integration will be strengthened to the point where explicit integration with Appbar is not usually even necessary.