You are here

function locale_variable_language_element_value in Variable 7

Map form element value to actual value.

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

File

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

Code

function locale_variable_language_element_value($element, $input = FALSE, $form_state = array()) {
  if ($input === FALSE) {
    return $element['#default_value']->language;
  }
  else {
    return $input;
  }
}