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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amuhebwa’s picture

Issue summary: View changes
amuhebwa’s picture

Issue summary: View changes
Status: Needs work » Closed (fixed)
amuhebwa’s picture

Issue summary: View changes
amuhebwa’s picture

Here 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