template.php 581 B

12345678910111213141516171819
  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. }