Mercurial > hg > rr-repo
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/simpletest/tests/requirements1_test.install Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,21 @@ +<?php + +/** + * Implements hook_requirements(). + */ +function requirements1_test_requirements($phase) { + $requirements = array(); + // Ensure translations don't break during installation. + $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; +}