aboutsummaryrefslogtreecommitdiff
path: root/exif.install
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2010-04-26 12:35:47 -0300
committerSilvio <s1lv10@uol.com.br>2010-04-26 12:35:47 -0300
commit4ad6d1ad64e70691e83142ba98b79647d96caba4 (patch)
treea75cf88ce324fdb064141a5852ee62c7f15b7450 /exif.install
parente68a8fa5e39991cdde75d3770a0cd4e0429f3b3d (diff)
downloadexif-4ad6d1ad64e70691e83142ba98b79647d96caba4.tar.gz
exif-4ad6d1ad64e70691e83142ba98b79647d96caba4.tar.bz2
Initial code for XMP data import
Diffstat (limited to 'exif.install')
-rwxr-xr-xexif.install15
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
+}