You are here

function i18nBlocksTestCase::setBlockMode in Internationalization 7

Update block i18n mode

File

i18n_block/i18n_block.test, line 176
Test case for multilingual blocks

Class

i18nBlocksTestCase
@file Test case for multilingual blocks

Code

function setBlockMode($block, $mode = I18N_MODE_LOCALIZE) {
  $edit['i18n_mode'] = $mode;
  $this
    ->updateBlock($block, $edit);
}