function i18n_variable_list in Internationalization 7
Get list of multilingual variables or check whether a variable is multilingual
1 call to i18n_variable_list()
- i18n_variable_load in i18n_variable/
i18n_variable.module - Load language variables into array.
3 string references to 'i18n_variable_list'
- i18nSelectTestCase::testIi18nSelect in i18n_select/
i18n_select.test - i18n_variable_update_7000 in i18n_variable/
i18n_variable.install - Update multilingual variables variable name
- i18n_variable_update_7004 in i18n_variable/
i18n_variable.install - Delete obsoleted variable realm variables.
File
- i18n_variable/
i18n_variable.module, line 82 - Internationalization (i18n) package. Multilingual variables API.
Code
function i18n_variable_list($name = NULL) {
$variables =& drupal_static(__FUNCTION__);
if (!isset($variables)) {
$variables = variable_children(variable_get('variable_realm_list_language', array()));
}
return $name ? in_array($name, $variables) : $variables;
}