You are here

function advagg_js_cdn_get_jquery_path in Advanced CSS/JS Aggregation 6

Get the path for the jquery.js file.

Return value

path to jquery.js file.

1 call to advagg_js_cdn_get_jquery_path()
advagg_js_cdn_advagg_js_pre_alter in advagg_js_cdn/advagg_js_cdn.module
Implement hook_advagg_js_pre_alter.

File

advagg_js_cdn/advagg_js_cdn.module, line 158
Advanced aggregation js cdn library module.

Code

function advagg_js_cdn_get_jquery_path() {
  if (function_exists('jquery_update_jquery_path')) {
    return dirname(jquery_update_jquery_path());
  }
  else {
    $jquery_update_filepath = drupal_get_path('module', 'jquery_update');
    return $jquery_update_filepath . '/replace/';
  }
}