summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/requirements1_test.install
blob: 651d911abb88ea2fdc328fda58d0c988665ff1c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

/**
 * Implements hook_requirements().
 */
function requirements1_test_requirements($phase) {
  $requirements = array();
  // Ensure translations don't break at install time.
  $t = get_t();

  // Always fails requirements.
  if ('install' == $phase) {
    $requirements['requirements1_test'] = array(
      'title' => $t('Requirements 1 Test'),
      'severity' => REQUIREMENT_ERROR,
      'description' => $t('Requirements 1 Test failed requirements.'),
    );
  }

  return $requirements;
}