Mercurial > hg > rr-repo
comparison modules/simpletest/tests/requirements1_test.install @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
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 } |