function ip_geoloc_get_font_icon_libs in IP Geolocation Views & Maps 7
Same name and namespace in other branches
- 8 ip_geoloc.module \ip_geoloc_get_font_icon_libs()
Returns an array of libraries as entered on the config page.
3 calls to ip_geoloc_get_font_icon_libs()
- ip_geoloc_admin_configure in ./
ip_geoloc.admin.inc - Menu callback for admin settings.
- ip_geoloc_library in ./
ip_geoloc.module - Implements hook_library().
- ip_geoloc_requirements in ./
ip_geoloc.install - Implements hook_requirements().
File
- ./
ip_geoloc.module, line 843 - IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported. and available through this module. Using a number of optional sources IPGV&M also retrieves…
Code
function ip_geoloc_get_font_icon_libs() {
$libs = array();
for ($i = 1; $i <= IP_GEOLOC_MAX_NUM_FONT_ICON_LIBS; $i++) {
$file = variable_get("ip_geoloc_font_icon_lib{$i}");
if (!empty($file)) {
$libs[$i] = $file;
}
}
$known_install = 'sites/all/libraries/font-awesome/css/font-awesome.min.css';
if (empty($libs) && file_exists($known_install)) {
$libs[1] = $known_install;
}
return $libs;
}