Needs review
Project:
Notifications Add-ons
Version:
6.x-4.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2011 at 12:50 UTC
Updated:
18 Jan 2012 at 11:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
joachim commentedHere's the patch.
A few things I've not managed to figure out:
- the incoming $node in a couple of hooks was sometimes missing a $node->book property. Is there a hook somewhere else where it should be loaded in? I couldn't work this out, and it wasn't always missing, so I added a node_load() and an explanation for the apparent
- I was hoping to provide alternate templates for messages that are the result of a book subscription, but I cant find if that's actually possible -- see #1302460: does not seem possible to define or set templates by subscription type. I didn't think that adding a new type of event was the right thing to do, as these are still fundamentally node creations and updates -- you'd end up with two different events firing for the one user action which didn't seem right when it's really the same one.
Comment #2
mikebell_ commentedWhen using this patch we get the following:
Parameter 2 to notifications_book_notifications() expected to be a reference, value given in /home/quickstart/websites/bronetest.dev/sites/all/modules/messaging/messaging.module on line 1242.
Seems like it's not liking the reference on line 27 of notifications_book.module.
Comment #3
mikebell_ commentedAfter speaking with Joachim the pass by reference isn't needed so here's an updated patch that doesn't include it.
IGNORE - patch doesn't work as expected.
Comment #4
mikebell_ commentedFinally decided to re-tackle this and get the patch right.
Comment #5
mikebell_ commentedLast patch to fix another reference issue.