You are here

function locale_variable_language_element_validate in Variable 7

Same name and namespace in other branches
  1. 7.2 includes/locale.variable.inc \locale_variable_language_element_validate()

Replace language code by language object on submission

1 string reference to 'locale_variable_language_element_validate'
locale_variable_language_default_element in includes/locale.variable.inc
Form element for site default language

File

includes/locale.variable.inc, line 95
Variable API module. Definition for Drupal core variables

Code

function locale_variable_language_element_validate($element, &$form_state, $form) {
  $languages = language_list();
  $form_state['values'][$element['#name']] = $languages[$form_state['values'][$element['#name']]];
}