From b7ac66710151bfbb197e653c1d03a43d2ccfcbfa Mon Sep 17 00:00:00 2001 From: webchick Date: Mon, 30 Apr 2012 21:31:44 -0700 Subject: Issue #1213536 by David_Rothstein, tim.plunkett, sun, effulgentsia, Yorirou, xjm: Fixed Non-resettable theme_get_registry() cache causes problems for non-interactive installations. --- modules/simpletest/tests/theme_test.module | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/simpletest/tests/theme_test.module') diff --git a/modules/simpletest/tests/theme_test.module b/modules/simpletest/tests/theme_test.module index cce7b8093..a9bd2ad24 100644 --- a/modules/simpletest/tests/theme_test.module +++ b/modules/simpletest/tests/theme_test.module @@ -14,6 +14,9 @@ function theme_test_theme($existing, $type, $theme, $path) { $items['theme_test_template_test_2'] = array( 'template' => 'theme_test.template_test', ); + $items['theme_test_foo'] = array( + 'variables' => array('foo' => NULL), + ); return $items; } @@ -120,3 +123,10 @@ function _theme_test_alter() { function _theme_test_suggestion() { return theme(array('theme_test__suggestion', 'theme_test'), array()); } + +/** + * Theme function for testing theme('theme_test_foo'). + */ +function theme_theme_test_foo($variables) { + return $variables['foo']; +} -- cgit v1.2.3