You are here

exif.install in Exif 6

Same filename and directory in other branches
  1. 8.2 exif.install
  2. 8 exif.install
  3. 5 exif.install
  4. 7 exif.install

the install part of the module

File

exif.install
View source
<?php

/**
 * @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;
}

Functions

Namesort descending Description
exif_install Implementation of hook_install().
exif_requirements