diff options
Diffstat (limited to 'modules/simpletest/tests/theme_test.module')
-rw-r--r-- | modules/simpletest/tests/theme_test.module | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/simpletest/tests/theme_test.module b/modules/simpletest/tests/theme_test.module index 61a12bb70..948d8175a 100644 --- a/modules/simpletest/tests/theme_test.module +++ b/modules/simpletest/tests/theme_test.module @@ -53,6 +53,11 @@ function theme_test_menu() { 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); + $items['theme-test/drupal-add-region-content'] = array( + 'page callback' => '_theme_test_drupal_add_region_content', + 'access callback' => TRUE, + 'type' => MENU_CALLBACK, + ); return $items; } @@ -127,6 +132,14 @@ function _theme_test_suggestion() { } /** + * Page callback, calls drupal_add_region_content. + */ +function _theme_test_drupal_add_region_content() { + drupal_add_region_content('content', 'World'); + return 'Hello'; +} + +/** * Theme function for testing theme('theme_test_foo'). */ function theme_theme_test_foo($variables) { |