Version 1
[yaffs-website] / web / core / modules / system / tests / modules / theme_test / theme_test.inc
diff --git a/web/core/modules/system/tests/modules/theme_test/theme_test.inc b/web/core/modules/system/tests/modules/theme_test/theme_test.inc
new file mode 100644 (file)
index 0000000..1e0a7a6
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * @file
+ * Include file for test module.
+ */
+
+/**
+ * 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';
+}