You are here

function i18n_variable in Internationalization 6

Get list of multilingual variables or check whether a variable is multilingual

Related topics

5 calls to i18n_variable()
i18n_admin_variables_form in ./i18n.admin.inc
Variables overview form
i18n_admin_variables_form_submit in ./i18n.admin.inc
Admin variables form submission
i18n_form_alter in ./i18n.module
Implementation of hook_form_alter();
i18n_variable_form_submit in ./i18n.module
Save multilingual variables and remove them from form.
_i18n_variable_exit in ./i18n.module
Save multilingual variables that may have been changed by other methods than settings pages.

File

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

Code

function i18n_variable($name = NULL) {
  $variables = variable_get('i18n_variables', array());
  return $name ? in_array($name, $variables) : $variables;
}