You are here

function filefield_meta_requirements in FileField 6.2

Same name and namespace in other branches
  1. 5.2 filefield_meta/filefield_meta.module \filefield_meta_requirements()

Implementation of hook_requirements().

File

filefield_meta/filefield_meta.module, line 30
FileField Meta: Add Video Support to File Field.

Code

function filefield_meta_requirements($phase) {
  $requirements = array();

  // Ensure translations don't break at install time
  $t = get_t();
  if (version_compare(phpversion(), FILEFIELD_META_MINIMUM_PHP) < 0) {
    $requirements['filefield_meta_php'] = array(
      'title' => $t('FileField Meta PHP'),
      'description' => $t('FileField Meta requires at least PHP %version.', array(
        '%version' => FILEFIELD_META_MINIMUM_PHP,
      )),
      'severity' => REQUIREMENT_ERROR,
    );
  }
  return $requirements;
}