summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/theme_test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/theme_test.inc')
-rw-r--r--modules/simpletest/tests/theme_test.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/simpletest/tests/theme_test.inc b/modules/simpletest/tests/theme_test.inc
new file mode 100644
index 000000000..6cde68384
--- /dev/null
+++ b/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';
+}