According to documentation, the hook_apps_app_info post install callback is supposed to be called when the app is initially installed or first enabled. Normally, this would happen when module enable function (http://cgit.drupalcode.org/apps/tree/apps.pages.inc#n327) is called. However, this called back is enable called, because at this point, the hook_apps_app info array only contains the dafault values and is never recalled when the module is enabled, thus, the module will not fire all other callbacks, except those defined in the defaults array(http://cgit.drupalcode.org/apps/tree/apps.manifest.inc#n530)
Comment | File | Size | Author |
---|---|---|---|
#4 | apps-call_post_install_callback-2376519-#3.patch | 770 bytes | amuhebwa |
Comments
Comment #1
amuhebwa CreditAttribution: amuhebwa commentedComment #2
amuhebwa CreditAttribution: amuhebwa commentedComment #3
amuhebwa CreditAttribution: amuhebwa commentedComment #4
amuhebwa CreditAttribution: amuhebwa commentedHere is the patch that allows calling the hooks_apps_app_info() function after the module has been enabled, and merges the new array elements with the existing ones