summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/simpletest/tests/themes/test_theme/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/simpletest/tests/themes/test_theme/template.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/simpletest/tests/themes/test_theme/template.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/simpletest/tests/themes/test_theme/template.php b/kolab.org/www/drupal-7.26/modules/simpletest/tests/themes/test_theme/template.php
new file mode 100644
index 0000000..8275818
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/simpletest/tests/themes/test_theme/template.php
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * Tests a theme overriding a suggestion of a base theme hook.
+ */
+function test_theme_theme_test__suggestion($variables) {
+ return 'Theme hook implementor=test_theme_theme_test__suggestion(). Foo=' . $variables['foo'];
+}
+
+/**
+ * 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';
+}