summaryrefslogtreecommitdiff
path: root/themes/tests/test_theme/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/tests/test_theme/template.php')
-rw-r--r--themes/tests/test_theme/template.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/tests/test_theme/template.php b/themes/tests/test_theme/template.php
index 944c23690..3d8b656c7 100644
--- a/themes/tests/test_theme/template.php
+++ b/themes/tests/test_theme/template.php
@@ -9,3 +9,14 @@ function test_theme_breadcrumb__suggestion($variables) {
// when the suggestion has an implementation.
return 'test_theme_breadcrumb__suggestion: ' . $variables['theme_test_preprocess_breadcrumb'];
}
+
+/**
+ * Tests a theme implementing an alter hook.
+ *
+ * The confusing function name here is due to this being an implementation of
+ * the alter hook invoked when the 'theme_test' module calls
+ * drupal_alter('theme_test_alter').
+ */
+function test_theme_theme_test_alter_alter(&$data) {
+ $data = 'test_theme_theme_test_alter_alter was invoked';
+}