diff options
author | Silvio <s1lv10@uol.com.br> | 2010-04-26 12:35:47 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2010-04-26 12:35:47 -0300 |
commit | 4ad6d1ad64e70691e83142ba98b79647d96caba4 (patch) | |
tree | a75cf88ce324fdb064141a5852ee62c7f15b7450 /exif.install | |
parent | e68a8fa5e39991cdde75d3770a0cd4e0429f3b3d (diff) | |
download | exif-4ad6d1ad64e70691e83142ba98b79647d96caba4.tar.gz exif-4ad6d1ad64e70691e83142ba98b79647d96caba4.tar.bz2 |
Initial code for XMP data import
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 +} |