From d59a91f5296e402604ddd42a76e6c2bd2eb716d0 Mon Sep 17 00:00:00 2001 From: Daniel Lamb Date: Thu, 11 Jul 2013 12:01:10 -0300 Subject: [PATCH] Logging in as user 1 in islandora_install_solution_pack() for drush installation of islandora modules. --- includes/solution_packs.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/solution_packs.inc b/includes/solution_packs.inc index 26bd77b5..4e43a4c3 100644 --- a/includes/solution_packs.inc +++ b/includes/solution_packs.inc @@ -256,6 +256,14 @@ function islandora_install_solution_pack($module, $op = 'install') { return; } + // Login as user 1 if the installation is coming from the command line (e.g. + // drush). + if (drupal_is_cli()) { + global $user; + $user = user_load(1); + user_login_finalize(); + } + $t = get_t(); // Some general replacements.