summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/simpletest/tests/requirements1_test.install
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/simpletest/tests/requirements1_test.install')
-rw-r--r--kolab.org/www/drupal-7.26/modules/simpletest/tests/requirements1_test.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/simpletest/tests/requirements1_test.install b/kolab.org/www/drupal-7.26/modules/simpletest/tests/requirements1_test.install
new file mode 100644
index 0000000..91caca3
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/simpletest/tests/requirements1_test.install
@@ -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;
+}