diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 10:22:59 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 10:22:59 -0800 |
commit | 447d6a628bde3891a4be70a3d9131023214d00f3 (patch) | |
tree | a209c0e5047eb9a8b7e1bfd9cff4cd989a5a1162 /modules/simpletest/tests/theme_test.module | |
parent | 22135d9c0c7751ac45596c947b4918041a79eeb5 (diff) | |
download | brdo-447d6a628bde3891a4be70a3d9131023214d00f3.tar.gz brdo-447d6a628bde3891a4be70a3d9131023214d00f3.tar.bz2 |
Issue #1430300 by mradcliffe, xjm, effulgentsia, NROTC_Webmaster: Fixed Preprocess functions in an include file fail to get called when the theme implements a suggestion override.
Diffstat (limited to 'modules/simpletest/tests/theme_test.module')
-rw-r--r-- | modules/simpletest/tests/theme_test.module | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/modules/simpletest/tests/theme_test.module b/modules/simpletest/tests/theme_test.module index 48e2e83c6..cce7b8093 100644 --- a/modules/simpletest/tests/theme_test.module +++ b/modules/simpletest/tests/theme_test.module @@ -4,13 +4,16 @@ * Implements hook_theme(). */ function theme_test_theme($existing, $type, $theme, $path) { + $items['theme_test'] = array( + 'file' => 'theme_test.inc', + 'variables' => array('foo' => ''), + ); $items['theme_test_template_test'] = array( 'template' => 'theme_test.template_test', ); $items['theme_test_template_test_2'] = array( 'template' => 'theme_test.template_test', ); - return $items; } @@ -115,14 +118,5 @@ function _theme_test_alter() { * Page callback, calls a theme hook suggestion. */ function _theme_test_suggestion() { - return theme(array('breadcrumb__suggestion', 'breadcrumb'), array()); -} - -/** - * Implements hook_preprocess_breadcrumb(). - * - * Set a variable that can later be tested to see if this function ran. - */ -function theme_test_preprocess_breadcrumb(&$variables) { - $variables['theme_test_preprocess_breadcrumb'] = 1; + return theme(array('theme_test__suggestion', 'theme_test'), array()); } |