You are here

function i18n_variable_set in Internationalization 7

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_variable_set()
  2. 5 i18n.module \i18n_variable_set()
  3. 5.2 i18n.module \i18n_variable_set()
  4. 6 i18n.module \i18n_variable_set()

Set a persistent language dependent variable.

Parameters

$name: The name of the variable to set.

$value: The value to set. This can be any PHP data type; these functions take care of serialization as necessary.

$langcode: Language code.

1 call to i18n_variable_set()
i18nSelectTestCase::testIi18nSelect in i18n_select/i18n_select.test

File

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

Code

function i18n_variable_set($name, $value, $langcode) {
  variable_realm_set('language', $langcode, $name, $value);
}