You are here

function Drupali18nTestCase::enableBlock in Internationalization 6

Enable language switcher block

File

tests/drupal_i18n_test_case.php, line 66

Class

Drupali18nTestCase
Test case for typical Drupal tests.

Code

function enableBlock($module, $delta, $region = 'left') {
  db_query("UPDATE {blocks} SET status = %d, weight = %d, region = '%s', throttle = %d WHERE module = '%s' AND delta = '%s' AND theme = '%s'", 1, 0, $region, 0, $module, $delta, variable_get('theme_default', 'garland'));
  cache_clear_all();
}