// Add resources from coreResourceList
$jsWeight = -9999;
- foreach ($this->coreResourceList() as $file) {
+ foreach ($this->coreResourceList($region) as $file) {
if (substr($file, -2) == 'js') {
// Don't bother looking for ts() calls in packages, there aren't any
$translate = (substr($file, 0, 3) == 'js/');
/**
* List of core resources we add to every CiviCRM page.
*
+ * @param string $region
* @return array
*/
- public function coreResourceList() {
+ public function coreResourceList($region) {
$config = CRM_Core_Config::singleton();
// Use minified files for production, uncompressed in debug mode
// Note, $this->addScriptFile would automatically search for the non-minified file in debug mode but this is probably faster
}
// Allow hooks to modify this list
- CRM_Utils_Hook::coreResourceList($items);
+ CRM_Utils_Hook::coreResourceList($items, $region);
return $items;
}
* @see CRM_Core_Resources::coreResourceList
*
* @param array $list
+ * @param string $region
*/
- public static function coreResourceList(&$list) {
+ public static function coreResourceList(&$list, $region) {
// 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,
+ self::singleton()->invoke(2, $list, $region,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_coreResourceList'
);
}