theme_test.inc 372 B

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