protected function ImageAPIOptimizeProcessorKraken::libraryPresent in Image Optimize (or ImageAPI Optimize) 7.2
Try to detect the kraken library.
Return value
bool
3 calls to ImageAPIOptimizeProcessorKraken::libraryPresent()
- ImageAPIOptimizeProcessorKraken::configForm in modules/
kraken/ plugins/ ImageAPIOptimizeProcessorKraken.inc - ImageAPIOptimizeProcessorKraken::getDescription in modules/
kraken/ plugins/ ImageAPIOptimizeProcessorKraken.inc - ImageAPIOptimizeProcessorKraken::process in modules/
kraken/ plugins/ ImageAPIOptimizeProcessorKraken.inc
File
- modules/
kraken/ plugins/ ImageAPIOptimizeProcessorKraken.inc, line 137
Class
Code
protected function libraryPresent() {
$libraries = libraries_detect('kraken-php');
if (isset($libraries['error'])) {
return FALSE;
}
if (!libraries_load('kraken-php')) {
return FALSE;
}
return TRUE;
}