template.php

  1. 7.x drupal-7.x/themes/seven/template.php
  2. 7.x drupal-7.x/themes/garland/template.php
  3. 7.x drupal-7.x/themes/bartik/template.php
  4. 7.x drupal-7.x/modules/simpletest/tests/themes/test_theme/template.php
  5. 6.x drupal-6.x/themes/garland/template.php

File

drupal-7.x/modules/simpletest/tests/themes/test_theme/template.php
View source
  1. <?php
  2. /**
  3. * Tests a theme overriding a suggestion of a base theme hook.
  4. */
  5. function test_theme_theme_test__suggestion($variables) {
  6. return 'Theme hook implementor=test_theme_theme_test__suggestion(). Foo=' . $variables['foo'];
  7. }
  8. /**
  9. * Tests a theme implementing an alter hook.
  10. *
  11. * The confusing function name here is due to this being an implementation of
  12. * the alter hook invoked when the 'theme_test' module calls
  13. * drupal_alter('theme_test_alter').
  14. */
  15. function test_theme_theme_test_alter_alter(&$data) {
  16. $data = 'test_theme_theme_test_alter_alter was invoked';
  17. }