diff options
Diffstat (limited to 'exif.install')
-rwxr-xr-x | exif.install | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/exif.install b/exif.install index 0071310..f0f9fbd 100755 --- a/exif.install +++ b/exif.install @@ -22,5 +22,18 @@ function exif_requirements($phase) { ); } } + + if ($phase == 'runtime' || $phase == 'install') { + $xmp = class_exists('SXMPFiles'); + $requirements['xmp'] = array( + 'title' => $t('XMP'), + 'value' => $xmp, + ); + if (!$xmp) { + $requirements['xmp']['description'] = $t("You don't have XMP Toolkit installed in your system."); + $requirements['xmp']['severity'] = REQUIREMENT_ERROR; + } + } + return $requirements; -}
\ No newline at end of file +} |