The module doesn't uninstall the registration_role_roles variable correctly as I think the hook implementation is erroneously using hook_delete instead of hook_uninstall. I also had to convert the install file using dos2unix as the line endings were showing as ^M in the original diff. Patch forthcoming.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | registration_role-uninstall-hook-incorrectly-named-2665590-2.patch | 647 bytes | badjava |
Comments
Comment #2
badjava commentedHere is the patch. Because of the file conversion, the entire contents of the file are being replaced.
Comment #3
badjava commentedComment #4
aprogs commentedConfirming the bug, the variable does not get deleted.
Hook
hook_node_delete()responds to node deletion, the correct hook ishook_uninstall()as @badjava suggested.Comment #6
mlncn commentedThanks, brought this in. How has this been working before is my question— ah hook_delete would only be called if registration_role provided a custom node type.
Comment #7
mlncn commentedThis is in release 7.x-1.2. Thank you badjava! And sorry for the delay.
Comment #8
mlncn commented