diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-09 13:46:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-09 13:46:09 +0000 |
commit | 1a9758c6734bda78a9393eb85cd2244f8bfad952 (patch) | |
tree | 839b15cd3d5ec81e0768c01f934268764ba1541b /modules/locale/tests | |
parent | ef474193ad3873b82a4339443fa6f7be069eb14c (diff) | |
download | brdo-1a9758c6734bda78a9393eb85cd2244f8bfad952.tar.gz brdo-1a9758c6734bda78a9393eb85cd2244f8bfad952.tar.bz2 |
- Patch #871298 by plach: improve comment language test coverage.
Diffstat (limited to 'modules/locale/tests')
-rw-r--r-- | modules/locale/tests/locale_test.module | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/locale/tests/locale_test.module b/modules/locale/tests/locale_test.module index fe166a91c..933de8998 100644 --- a/modules/locale/tests/locale_test.module +++ b/modules/locale/tests/locale_test.module @@ -17,6 +17,8 @@ function locale_test_locale($op = 'groups') { } /** + * Implements hook_boot(). + * * For testing domain language negotiation, we fake it by setting * the HTTP_HOST here */ @@ -25,3 +27,15 @@ function locale_test_boot() { $_SERVER['HTTP_HOST'] = variable_get('locale_test_domain'); } } + +/** + * Implements hook_language_types_info_alter(). + */ +function locale_test_language_types_info_alter(array &$language_types) { + if (variable_get('locale_test_content_language_type', FALSE)) { + $language_types[LANGUAGE_TYPE_CONTENT] = array( + 'name' => t('Content'), + 'description' => t('Order of language detection methods for content. If a version of content is available in the detected language, it will be displayed.'), + ); + } +} |