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