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