CRM_Core_Module - Add pseudomodule for "civicrm" so that core can use hook_civicrm_ma...
authorTim Otten <totten@civicrm.org>
Sat, 24 May 2014 03:27:00 +0000 (20:27 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 26 May 2014 20:04:28 +0000 (13:04 -0700)
CRM/Core/Module.php

index 58a848c29c05c10f9564a3e5aa0757dc76d81696..29d5bab43174437af9a7b9424a319407fdfc54b3 100644 (file)
@@ -63,6 +63,7 @@ class CRM_Core_Module {
     static $result;
     if ($fresh || !is_array($result)) {
       $result = CRM_Extension_System::singleton()->getMapper()->getModules();
+      $result[] = new CRM_Core_Module('civicrm', TRUE); // pseudo-module for core
 
       $config = CRM_Core_Config::singleton();
       if (is_callable(array($config->userSystem, 'getModules'))) {