Get the latest version number for the remote version.
Paramètres
string $name: Name of the library.
string $module_name: Name of the module where the library is registered.
Return value
array The library array.
6 calls to advagg_get_library()
- advagg_font_admin_settings_form dans advagg_font/
advagg_font.admin.inc - Form builder; Configure advagg settings.
- advagg_font_page_alter dans advagg_font/
advagg_font.module - Implements hook_page_alter().
- advagg_get_version_description dans ./
advagg.module - Get the description text based off the library version.
- advagg_mod_add_loadcss_js_lib dans advagg_mod/
advagg_mod.module - Adds the loadcss js library if needed.
- advagg_validator_admin_css_lint_form dans advagg_validator/
advagg_validator.admin.inc - Form builder; CSS validator via csslint.
Fichier
-
./
advagg.module, line 5855
Code
function advagg_get_library($name, $module_name) {
$library = cache_get($name, 'cache_libraries');
if ($library) {
$library = $library->data;
}
else {
if (is_callable('libraries_detect')) {
$library = libraries_detect($name);
}
elseif (is_callable("{$module_name}_libraries_info")) {
$library = call_user_func("{$module_name}_libraries_info");
$library = $library[$name];
}
}
return $library;
}