summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/simpletest/tests/theme_test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/simpletest/tests/theme_test.inc')
-rw-r--r--kolab.org/www/drupal-7.26/modules/simpletest/tests/theme_test.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/simpletest/tests/theme_test.inc b/kolab.org/www/drupal-7.26/modules/simpletest/tests/theme_test.inc
new file mode 100644
index 0000000..6cde683
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/simpletest/tests/theme_test.inc
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * Returns HTML for the 'theme_test' theme hook used by tests.
+ */
+function theme_theme_test($variables) {
+ return 'Theme hook implementor=theme_theme_test(). Foo=' . $variables['foo'];
+}
+
+/**
+ * Preprocesses variables for theme_theme_test().
+ */
+function template_preprocess_theme_test(&$variables) {
+ $variables['foo'] = 'template_preprocess_theme_test';
+}