function _qtip_libraries_get_preferred_variant_name in qTip (Stylish jQuery Tooltips) 7.2
Returns the variant that should be loaded based on order preference.
Parameters
array $library: A libraries module library definition array.
Return value
string The name of the variant that should be loaded.
1 call to _qtip_libraries_get_preferred_variant_name()
- _qtip_convert_libraries_to_library in ./
qtip.module - Converts a libraries module array to a hook_library array.
File
- ./
qtip.module, line 397
Code
function _qtip_libraries_get_preferred_variant_name($library) {
if (!empty($library['variant order'])) {
foreach ($library['variant order'] as $name) {
if ($variant = $library['variants'][$name]) {
if ($variant['installed']) {
return $name;
}
}
}
}
return NULL;
}