summaryrefslogtreecommitdiff
path: root/themes/tests/test_theme/template.php
blob: 3d8b656c71fdd7dd78902eb24f098e61ef3fda0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// $Id$

/**
 * Tests a theme overriding a suggestion of a base theme hook.
 */
function test_theme_breadcrumb__suggestion($variables) {
  // Tests that preprocess functions for the base theme hook get called even
  // when the suggestion has an implementation.
  return 'test_theme_breadcrumb__suggestion: ' . $variables['theme_test_preprocess_breadcrumb'];
}

/**
 * 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';
}