You are here

public function Drupali18nTestCase::getEnabledLanguages in Internationalization 7

Get enabled languages

2 calls to Drupali18nTestCase::getEnabledLanguages()
i18nBlocksTestCase::setBlockLanguages in i18n_block/i18n_block.test
Update block visibility for languages
i18nBlocksTestCase::testBlockTranslation in i18n_block/i18n_block.test

File

./i18n.test, line 299
Base class for Internationalization tests

Class

Drupali18nTestCase
@file Base class for Internationalization tests

Code

public function getEnabledLanguages() {
  $list = array();
  foreach (language_list() as $langcode => $language) {
    if (!empty($language->enabled)) {
      $list[$langcode] = $language;
    }
  }
  return $list;
}