function imagecache_autorotate_requirements in ImageCache Actions 7
Same name and namespace in other branches
- 8 autorotate/imagecache_autorotate.install \imagecache_autorotate_requirements()
Implements hook_requirements().
File
- autorotate/
imagecache_autorotate.install, line 5
Code
function imagecache_autorotate_requirements($phase) {
$result = array();
$t = get_t();
if (!extension_loaded('exif')) {
$result['imagecache_autorotate_exif_extension'] = array(
'title' => 'EXIF extension',
'value' => $phase === 'runtime' ? $t('Disabled') : '',
'description' => $t('The autorotate image effect requires the exif extension to be enabled.'),
'severity' => REQUIREMENT_ERROR,
);
}
else {
$result['imagecache_autorotate_exif_extension'] = array(
'title' => 'EXIF extension',
'value' => $t('Enabled'),
'severity' => REQUIREMENT_OK,
);
}
return $result;
}