diff --git a/apps.pages.inc b/apps.pages.inc index 834a20f..fa760ad 100755 --- a/apps.pages.inc +++ b/apps.pages.inc @@ -327,6 +327,12 @@ function apps_app_enable($app) { $success = module_enable(array($app['machine_name']), TRUE); if ($success) { drupal_flush_all_caches(); + // reload the hook_apps_app_info, this time with all hooks and merge it with the app array + $info = $app['machine_name'] ."_apps_app_info"; + if (function_exists($info)) { + $info_array = $info(); + $app = array_merge($app, $info_array); + } drupal_set_message(t("Enabled @name app", array('@name' => $app['name']))); if (!$app['disabled'] && ($cb = apps_app_callback($app, "post install callback"))) { $cb($app);