You are here

function _i18n_set_db_prefix in Internationalization 5.3

Same name and namespace in other branches
  1. 5 i18n.module \_i18n_set_db_prefix()
  2. 5.2 i18n.module \_i18n_set_db_prefix()

Sets db_prefix to given language

1 call to _i18n_set_db_prefix()
i18n_init in ./i18n.module
Implementation of hook_init()

File

./i18n.module, line 1223
Internationalization (i18n) module

Code

function _i18n_set_db_prefix($lang) {
  global $db_prefix, $db_prefix_i18n;
  if (is_array($db_prefix_i18n)) {
    $db_prefix = array_merge($db_prefix, str_replace('**', $lang, $db_prefix_i18n));
  }
}