theme_test.inc

File

drupal-7.x/modules/simpletest/tests/theme_test.inc
View source
  1. <?php
  2. /**
  3. * Returns HTML for the 'theme_test' theme hook used by tests.
  4. */
  5. function theme_theme_test($variables) {
  6. return 'Theme hook implementor=theme_theme_test(). Foo=' . $variables['foo'];
  7. }
  8. /**
  9. * Preprocesses variables for theme_theme_test().
  10. */
  11. function template_preprocess_theme_test(&$variables) {
  12. $variables['foo'] = 'template_preprocess_theme_test';
  13. }