summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/theme_test.inc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-28 10:22:59 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-28 10:22:59 -0800
commit447d6a628bde3891a4be70a3d9131023214d00f3 (patch)
treea209c0e5047eb9a8b7e1bfd9cff4cd989a5a1162 /modules/simpletest/tests/theme_test.inc
parent22135d9c0c7751ac45596c947b4918041a79eeb5 (diff)
downloadbrdo-447d6a628bde3891a4be70a3d9131023214d00f3.tar.gz
brdo-447d6a628bde3891a4be70a3d9131023214d00f3.tar.bz2
Issue #1430300 by mradcliffe, xjm, effulgentsia, NROTC_Webmaster: Fixed Preprocess functions in an include file fail to get called when the theme implements a suggestion override.
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';
+}