function _pm_get_fontawesome_status in Drupal PM (Project Management) 7.3
Helper function to check if fontawesome is available or not.
1 call to _pm_get_fontawesome_status()
- pm_preprocess_html in ./
pm.module - Set body class to use pm default icons if required.
File
- ./
pm.module, line 683 - Main module file for the Project Management module.
Code
function _pm_get_fontawesome_status() {
$status =& drupal_static(__FUNCTION__);
if (!isset($status)) {
$status = PM_FONTAWESOME_DISABLED;
$status |= module_exists('fontawesome') ? PM_FONTAWESOME_MODULE_ENABLED : 0x0;
if (module_exists('libraries')) {
$library_info = libraries_detect('fontawesome');
if (isset($library_info['installed']) and $library_info['installed'] == TRUE) {
$status |= PM_FONTAWESOME_LIBRARY_ENABLED;
}
}
}
return $status;
}