}
}
- // CMS-specific resources
- $config->userSystem->appendCoreResources($items);
+ // Allow hooks to modify this list
+ CRM_Utils_Hook::coreResourceList($items);
return $items;
}
);
}
+ /**
+ * This hook is called when core resources are being loaded
+ *
+ * @see CRM_Core_Resources::coreResourceList
+ *
+ * @param array $list
+ */
+ public static function coreResourceList(&$list) {
+ // First allow the cms integration to add to the list
+ CRM_Core_Config::singleton()->userSystem->appendCoreResources($list);
+
+ self::singleton()->invoke(1, $list,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_coreResourceList'
+ );
+ }
+
}