/** * Hook function for adding script * * @param array Params for hook * @return void */ function addJqJsByHook($params) { $confArr = tx_t3jquery::getConf(); if (tx_t3jquery::isIntegrated()) { if ($confArr['integrateFromCDN'] && isset($confArr['locationCDN'])) { tx_t3jquery::getCdnScript($params); } else { $params['jsLibs']['jQuery'] = array('file' => tx_t3jquery::getJqJS(TRUE), 'type' => 'text/javascript', 'section' => self::getSection(), 'compress' => FALSE, 'forceOnTop' => TRUE, 'allWrap' => ''); } define('T3JQUERY', TRUE); } else { t3lib_div::devLog('PID \'' . $GLOBALS['TSFE']->id . '\' in dontIntegrateOnUID', 't3jquery', 1); define('T3JQUERY', FALSE); } }