Closed (fixed)
Project:
Entity Registration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2012 at 20:58 UTC
Updated:
27 Jun 2014 at 21:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
seanbfuller commentedOr, of course, just add an ampersand on the $registration parameter so that the registration_id (and anything else is added to the reference) is magically available to the calling function. Either way, updating the comment to match what is actually happening also needs to be done.
Comment #2
seanbfuller commentedWhile developing some custom functions against registration, we also found a related issue in registration_save() where the wrong parameter was being passed in to module_invoke_all() for 'registration_save'. The $ret (true or false) was being passed in, as opposed to the $registration object, which was probably the intent.
Attached is a quick patch to fix these issues. It does the following:
Obviously this is a minor issue, but will probably become more critial as other modules try to leverage this module. Thanks!
Comment #3
levelos commentedActually Entity API handles all the hook invokations. But you're correct in that the return value was incorrect. Fixed in #5a43789.