You are here

function i18n_variable_del in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_variable_del()
  2. 5 i18n.module \i18n_variable_del()
  3. 6 i18n.module \i18n_variable_del()
  4. 7 i18n_variable/i18n_variable.module \i18n_variable_del()

Unset a persistent multilingual variable.

Parameters

$name: The name of the variable to undefine.

1 call to i18n_variable_del()
i18n_variable_form_submit in ./i18n.module
Save multilingual variables and remove them from form

File

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

Code

function i18n_variable_del($name, $language) {
  global $conf, $i18n_conf;
  db_query("DELETE FROM {i18n_variable} WHERE name = '%s' AND language='%s'", $name, $language);
  cache_clear_all('variables:' . $language, 'cache');
  unset($conf[$name]);
  unset($i18n_conf[$name]);
}