function Drupali18nTestCase::enableLanguageBlock in Internationalization 7
Enable the language switcher block.
1 call to Drupali18nTestCase::enableLanguageBlock()
- Drupali18nTestCase::setUpContentType in ./
i18n.test - Set up content-type (with translation).
File
- ./
i18n.test, line 70 - Base class for Internationalization tests
Class
- Drupali18nTestCase
- @file Base class for Internationalization tests
Code
function enableLanguageBlock() {
// Enable the language switcher block.
$language_type = LANGUAGE_TYPE_INTERFACE;
$edit = array(
"blocks[locale_{$language_type}][region]" => 'sidebar_first',
);
$this
->drupalPost('admin/structure/block', $edit, t('Save blocks'));
}