testing_requirements.install 447 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php

/**
 * @file
 * Install hooks for test profile.
 */

/**
 * Implements hook_requirements().
 */
function testing_requirements_requirements($phase) {
  $requirements = [];

  if ($phase === 'install') {
    $requirements['testing_requirements'] = [
      'title' => t('Testing requirements'),
      'severity' => REQUIREMENT_ERROR,
      'description' => t('Testing requirements failed requirements.'),
    ];
  }

  return $requirements;
}