Appbar is a module for social networking extension, just like Mentions. It would be great that Mentions support Appbar, that means each time someone gets mentioned, he/she will get an alert on appbar. In general, a message like this will be sent:
$link = '... must generate link to content';
$title = 'title';
appbar_set_message(t('You are mentioned at !link', array('!link' => t($title, $link)), 'mentions', $auid);
I'm working for such an integration. But I have a problem:
- If I put the code in _mentions_update(), I don't know the $link and $title.
- If I put the code in each .inc file at modules/, there is redundancy.
Appbar supports Views, Mentions does, too. But I can't find a way to get Appbar support multiple views.
An example of core modules integration on appbar is here.
Comments
Comment #1
icecreamyou commentedHi, I'm the Appbar maintainer.
I think this should be fixed with the latest release of Appbar if Mentions has Views integration. Appbar can now hold blocks (yay) so Views can be used to create a block display that shows a list of user mentions, and that block can then be put on the Appbar.
Comment #2
jcisio commentedI mean sending an alert when someone gets mentioned.
Comment #3
icecreamyou commentedAh. Well Activity integration is the right way to go in that case then, since Appbar will be transitioning to using Activity as the basis for its alert system in the future.
Comment #4
jcisio commentedIs it still correct, ICY? I mean the FBSS 3.x.
Comment #5
icecreamyou commentedWhat does this have to do with FBSS?
Comment #6
jcisio commentedMy bad, I meant Appbar 3.x (or 2.x). As I see the fragmentation here: if A wants Appbar integration, it can integrate with Activity; if B wants Appbar integration, it can integrate with Views (also!); but then we'll never see them support Appbar at the same time!
Comment #7
icecreamyou commentedEr... there is no Appbar 3.x. But right now integration with Appbar 2.x means integration with Rules. In the future I still plan to transition to Activity.
Comment #8
dsnopekThis integration could be done outside of the mentions code if there was a hook added to this module. See #1851272: Add hook that's called when mentions are added
Comment #9
dsnopekEr, sorry, my issue turned out to be a duplicate of this issue: #912016: Add hook for mention added/removed
Comment #10
decipheredSounds like an interesting idea. Marking for D7.
Comment #11
decipheredLooks like there's nothing to do here... if you want to add a Mentions block to Appbar, and if you want to do it with Rules you can do that now as well.