function advagg_js_cdn_get_jquery_ui_path in Advanced CSS/JS Aggregation 6
Get the path for the jquery-ui.js file.
Parameters
string $file: filename.
1 call to advagg_js_cdn_get_jquery_ui_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 133 - Advanced aggregation js cdn library module.
Code
function advagg_js_cdn_get_jquery_ui_path() {
$jquery_ui_path_const = 'JQUERY_UI_PATH';
if (!defined($jquery_ui_path_const)) {
if (!function_exists('jquery_ui_get_path')) {
return FALSE;
}
$jquery_ui_path = jquery_ui_get_path();
if ($jquery_ui_path === FALSE) {
return FALSE;
}
}
else {
$jquery_ui_path = constant($jquery_ui_path_const);
}
$jquery_ui_path .= '/ui';
return $jquery_ui_path;
}