function _emogrifier_available in Emogrifier 8
Same name and namespace in other branches
- 6 emogrifier.module \_emogrifier_available()
- 7.2 emogrifier.module \_emogrifier_available()
- 7 emogrifier.module \_emogrifier_available()
Returns TRUE if the Emogrifier class is available.
2 calls to _emogrifier_available()
- emogrifier_requirements in ./
emogrifier.install - Implements hook_requirements().
- _emogrifier_process in ./
emogrifier.module - Implements hook_filter_FILTER_process().
File
- ./
emogrifier.module, line 240
Code
function _emogrifier_available() {
// Maybe something loaded the class without telling libraries API.
if (class_exists('Emogrifier')) {
return TRUE;
}
@(include_once libraries_get_path('emogrifier') . '/emogrifier.php');
return class_exists('Emogrifier');
}