function i18n_variable_get in Internationalization 6
Same name and namespace in other branches
- 7 i18n_variable/i18n_variable.module \i18n_variable_get()
Get single multilingual variable
Related topics
File
- ./
i18n.module, line 899 - Internationalization (i18n) module.
Code
function i18n_variable_get($name, $langcode, $default = NULL) {
if ($variables = _i18n_variable_init($langcode)) {
return isset($variables[$name]) ? $variables[$name] : $default;
}
else {
return $default;
}
}