requirements1_test.install 505 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Implements hook_requirements().
  4. */
  5. function requirements1_test_requirements($phase) {
  6. $requirements = array();
  7. // Ensure translations don't break during installation.
  8. $t = get_t();
  9. // Always fails requirements.
  10. if ('install' == $phase) {
  11. $requirements['requirements1_test'] = array(
  12. 'title' => $t('Requirements 1 Test'),
  13. 'severity' => REQUIREMENT_ERROR,
  14. 'description' => $t('Requirements 1 Test failed requirements.'),
  15. );
  16. }
  17. return $requirements;
  18. }