function imagick_requirements in Imagick 8
Same name and namespace in other branches
- 7 imagick.install \imagick_requirements()
Implements hook_requirements().
File
- ./imagick.install, line 10 
Code
function imagick_requirements($phase) {
  $requirements = [];
  // Set a status message when the extension is not available
  if (!extension_loaded('imagick')) {
    $requirements['not_installed'] = [
      'title' => 'ImageMagick PHP extension',
      'value' => t('Not installed'),
      'severity' => REQUIREMENT_ERROR,
      'description' => t('The Imagick image toolkit requires that the Imagick extension for PHP is installed and configured properly. For more information see <a href=":url">PHP\'s ImageMagick documentation</a>.', [
        ':url' => 'http://php.net/manual/book.imagick.php',
      ]),
    ];
  }
  return $requirements;
}