Browse Source

Logging in as user 1 on solution pack uninstalls as well.

pull/364/head
Daniel Lamb 11 years ago
parent
commit
4d3642b1bc
  1. 9
      includes/solution_packs.inc

9
includes/solution_packs.inc

@ -336,6 +336,15 @@ function islandora_install_solution_pack($module, $op = 'install') {
* directly for each solution pack.
*/
function islandora_uninstall_solution_pack($module) {
// Login as user 1 if the uninstall 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();
module_load_include('module', 'islandora', 'islandora');
module_load_include('inc', 'islandora', 'includes/utilities');

Loading…
Cancel
Save