There was getting to be a lot of parameters going to the apps_profile_install_tasks function so instead I've changed it to being an array of server settings.

I've updated all the code and docs to reflect this.

Also note: The default content option has been changed to a function callback instead of having openenterprise specific settings in there. I wanted a callback because we want the ability to choose different bundles of content to install which this would allow to do.

Comments

randallknutson’s picture

StatusFileSize
new5.32 KB

Attaching patch.

randallknutson’s picture

Status: Active » Needs review
febbraro’s picture

Status: Needs review » Needs work
+++ b/apps.profile.incundefined
@@ -268,6 +268,14 @@ function apps_profile_install_app_modules(&$install_state) {
+  if ($_SESSION['apps_default_content']) {
+    $function = $_SESSION['apps_server']['default content callback'];

The if test should be on $_SESSION['apps_server']['default content callback'] as well, no?

populist’s picture

Status: Needs work » Needs review
StatusFileSize
new5.81 KB

Here is an updated patch that applies against the latest -dev release and does a check for $_SESSION['apps_server']['default content callback'] as well.

febbraro’s picture

Status: Needs review » Needs work

Your patch is from the drupal root, not relative to the apps module root folder. Can you give a quick reroll? My dev setup does not have the same path as your patch.

populist’s picture

Status: Needs work » Needs review
StatusFileSize
new5.41 KB

Sure - rerolled.

febbraro’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.