Index: themes/tests/test_theme/template.php =================================================================== RCS file: /cvs/drupal/drupal/themes/tests/test_theme/template.php,v retrieving revision 1.2 diff -u -p -F '^f' -r1.2 template.php --- themes/tests/test_theme/template.php 22 Aug 2010 12:46:21 -0000 1.2 +++ themes/tests/test_theme/template.php 15 Nov 2010 09:36:14 -0000 @@ -20,3 +20,24 @@ function test_theme_breadcrumb__suggesti function test_theme_theme_test_alter_alter(&$data) { $data = 'test_theme_theme_test_alter_alter was invoked'; } + + +/** + * Tests that theme hook suggestions provided by a module in a preprocess + * function are available to the theme. These suggestions are created in + * template_preprocess_node(). + */ +function test_theme_preprocess_node(&$variables) { + // You should see node__TYPE, node__ID. + print_r($variables['theme_hook_suggestions']); +} + +/** + * Tests that theme hook suggestions provided by a module in a render element + * are available to the theme. The exposed_filters__user suggestion is created + * in user_filter_form(). + */ +function test_theme_preprocess_exposed_filters(&$variables) { + // You should see exposed_filters__user. You get nothing. + print_r($variables['theme_hook_suggestions']); +}