summaryrefslogtreecommitdiff
path: root/themes/tests
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-21 04:05:24 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-21 04:05:24 +0000
commit426f82ac6dc41caa09d98168a40c96b677223831 (patch)
tree4757b41b8ab36091bd3df6602cf0150316fe9bbe /themes/tests
parente6bdfc8a2e83ed0c289bab4b589e20c06fad26e8 (diff)
downloadbrdo-426f82ac6dc41caa09d98168a40c96b677223831.tar.gz
brdo-426f82ac6dc41caa09d98168a40c96b677223831.tar.bz2
#241570 by effulgentsia and merlinofchaos: Fixed Theme preprocess functions do not get retained when using patterns.
Diffstat (limited to 'themes/tests')
-rw-r--r--themes/tests/test_theme/template.php11
-rw-r--r--themes/tests/test_theme/test_theme.info6
2 files changed, 17 insertions, 0 deletions
diff --git a/themes/tests/test_theme/template.php b/themes/tests/test_theme/template.php
new file mode 100644
index 000000000..944c23690
--- /dev/null
+++ b/themes/tests/test_theme/template.php
@@ -0,0 +1,11 @@
+<?php
+// $Id$
+
+/**
+ * Tests a theme overriding a suggestion of a base theme hook.
+ */
+function test_theme_breadcrumb__suggestion($variables) {
+ // Tests that preprocess functions for the base theme hook get called even
+ // when the suggestion has an implementation.
+ return 'test_theme_breadcrumb__suggestion: ' . $variables['theme_test_preprocess_breadcrumb'];
+}
diff --git a/themes/tests/test_theme/test_theme.info b/themes/tests/test_theme/test_theme.info
new file mode 100644
index 000000000..853a501b5
--- /dev/null
+++ b/themes/tests/test_theme/test_theme.info
@@ -0,0 +1,6 @@
+; $Id$
+name = Test theme
+description = Theme for testing the theme system
+core = 7.x
+engine = phptemplate
+hidden = TRUE \ No newline at end of file