Closed (fixed)
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2012 at 00:38 UTC
Updated:
18 May 2012 at 20:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
rurri commentedHere is the patch to make the hook happen.
Comment #2
rurri commentedBasically this patch just replaces
with
adds documentation for the hook, and then creates a single method that implements the hook and calls the spool
Comment #3
rurri commentedComment #4
berdirAdding a hook sound useful but it's not necessary to change the API for this. Simply place the module_invoke_all() call inside simplenews_add_node_to_spool().
Then your patch is simplified to an additional line + maybe a comment and the api.php changes.
Looks like you've overriden one of the placeholder defgroups. We do want to keep that..
Comment #5
rurri commentedSimplified patch
Comment #6
rurri commentedComment #7
berdirTrailing space on the first line.
Comments should have a space after the // and end with a .
Looks good after this, much simpler now :)
Comment #8
rurri commentedRemoved space and fixed comment.
Comment #10
rurri commentedNot sure how change the comment caused that one to fail.. but in any case, changed the variable name in the api.php to be $newsletter in this one.
Comment #11
berdir#8: hook_simplenews_send-1560084-7.patch queued for re-testing.
Comment #12
berdirThis is a problem with the test, that one fails sometimes. Triggered a re-test.
Actually, let's just name the variable @node and also add a @param to the docblock explaining that this is the sent node.
It's not the newsletter/category that we are passing to that function.
Comment #13
rurri commentedMinor changes to docbloc in api
Comment #14
berdirLooks good, commited, thanks!