function _emogrifier_available in Emogrifier 6
Same name and namespace in other branches
- 8 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 - Returns $text with stylesheet rules converted to inline style attributes.
File
- ./
emogrifier.module, line 246
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');
}