Problem/Motivation
When implementing hook_plugin(), function does not receive any parameter, so it's difficult to perform operations based on the plugin definition.
In my case, I want to centralize the plugin definition in a single hook instead of implementing a different hook per plugin. It is impossible, given that I can't determine which plugin is being executed each time.
Proposed resolution
Pass an extra parameter to hook_plugin(), including the plugin info array.
Remaining tasks
Patch
Approve
User interface changes
None
API changes
hook_plugin() will receive an extra parameter, including the full plugin info array.
Comments
Comment #1
plopescAttaching patch.
I think it is a simple one and will help developers implementing these hooks.
Regards
Comment #2
plopescComment #3
e0ipso+1 on getting this in.
Comment #4
mrjmd commentedComment #5
japerryThats fine, shouldn't cause any regressions. (didn't for me) Fixed.