Skip navigation
Help

language_default

6 bootstrap.inc language_default($property = NULL)
7 bootstrap.inc language_default($property = NULL)

Default language used on the site

Parameters

$property: Optional property of the language object to return

30 calls to language_default()

11 string references to 'language_default'

File

drupal/includes/bootstrap.inc, line 2361
Functions that need to be loaded on every Drupal request.

Code

function language_default($property = NULL) {
  $language = variable_get('language_default', (object) array('language' => 'en', 'name' => 'English', 'native' => 'English', 'direction' => 0, 'enabled' => 1, 'plurals' => 0, 'formula' => '', 'domain' => '', 'prefix' => '', 'weight' => 0, 'javascript' => ''));
  return $property ? $language->$property : $language;
}