When installing a group of modules, like in an install profile for example, the geoip module errors out with an undefined function error, claiming that 'libraries_detect' does not exist.
It seems to be a common pattern pattern in install hooks to use module_load_include even on module files. I can't find specific documentation which says you must load the module files of dependencies, but it's mentioned briefly here:
> When you are installing a module that is dependent on another module, the other module might not be 100% functional.
There are lots of other examples of this in contrib and one in core with openid doing a module_load_include on itself.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2547397-module-load-include-geoip.patch | 433 bytes | Sam152 |
Comments
Comment #2
Sam152 CreditAttribution: Sam152 commentedComment #3
jibranLook good to me.
Comment #4
das-peter CreditAttribution: das-peter as a volunteer and at Cando commentedThanks for the patch - sorry for the late response, just now adjusted my issue subscription for this project ;)