From 92623713cbc89ecdbf97ff0aa6c165d9bc157c31 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 29 Apr 2013 13:50:50 -0700 Subject: [PATCH] CRM-12370 - Reapply 2991458 See also: #552, #560, #570 ---------------------------------------- * CRM-12370: CRM_Utils_Hook::requireCiviModules() assigns infinite weight to extensions http://issues.civicrm.org/jira/browse/CRM-12370 --- CRM/Utils/Hook/Drupal.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Utils/Hook/Drupal.php b/CRM/Utils/Hook/Drupal.php index e9ba66539e..e0c425c73b 100644 --- a/CRM/Utils/Hook/Drupal.php +++ b/CRM/Utils/Hook/Drupal.php @@ -85,6 +85,7 @@ class CRM_Utils_Hook_Drupal extends CRM_Utils_Hook { } // we should add civicrm's module's just after main civicrm drupal module + // Note: Assume that drupalModules and civiModules may each be array() or NULL if ($this->drupalModules !== NULL) { foreach ($this->drupalModules as $moduleName) { $this->allModules[$moduleName] = $moduleName; @@ -96,6 +97,8 @@ class CRM_Utils_Hook_Drupal extends CRM_Utils_Hook { } } } + } else { + $this->allModules = (array) $this->civiModules; } if ($this->drupalModules !== NULL && $this->civiModules !== NULL) { -- 2.25.1