You are here

function i18n_variable_load in Internationalization 7

Load language variables into array.

Pull variables from the store but filter out the ones that are not multilingual.

File

i18n_variable/i18n_variable.module, line 95
Internationalization (i18n) package. Multilingual variables API.

Code

function i18n_variable_load($langcode) {
  $variables = array();
  foreach (variable_store('language', $langcode) as $name => $value) {
    if (i18n_variable_list($name)) {
      $variables[$name] = $value;
    }
  }
  return $variables;
}