diff options
author | Silvio <s1lv10@uol.com.br> | 2010-04-23 17:23:54 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2010-04-23 17:23:54 -0300 |
commit | 96d54bf6955d8e9711a50646473620182d442d76 (patch) | |
tree | fbf260846096a3fc208195545175900bcafcca30 /exif.install | |
download | exif-96d54bf6955d8e9711a50646473620182d442d76.tar.gz exif-96d54bf6955d8e9711a50646473620182d442d76.tar.bz2 |
Initial import from upstream release
Diffstat (limited to 'exif.install')
-rwxr-xr-x | exif.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/exif.install b/exif.install new file mode 100755 index 0000000..0071310 --- /dev/null +++ b/exif.install @@ -0,0 +1,26 @@ +<?php +// $Id: exif.install,v 1.4.2.5 2010/03/19 22:17:00 rapsli Exp $ +/** + * @file the install part of the module +*/ + +/** + * Implementation of hook_install(). + */ +function exif_install() { + db_query("UPDATE {system} SET weight = %d WHERE name = '%s'", -10, 'exif'); +} + +function exif_requirements($phase) { + $t = get_t(); + if ($phase == 'runtime' || $phase == 'install') { + if (!function_exists('exif_read_data')) { + $requirements['exif_read_data'] = array( + 'title' => $t('Function exif_read_data not available'), + 'value' => $t('The Function exif_read_data is not available on the system.'), + 'severity' => REQUIREMENT_ERROR, + ); + } + } + return $requirements; +}
\ No newline at end of file |