function language_default
Same name and namespace in other branches
- 6.x drupal-6.x/includes/bootstrap.inc \language_default()
Returns the default language used on the site
Parameters
$property: Optional property of the language object to return
26 calls to language_default()
- contact_site_form_submit in drupal-7.x/
modules/ contact/ contact.pages.inc - Form submission handler for contact_site_form().
- DrupalWebTestCase::setUp in drupal-7.x/
modules/ simpletest/ drupal_web_test_case.php - Sets up a Drupal site for running functional and integration tests.
- drupal_language_initialize in drupal-7.x/
includes/ bootstrap.inc - Initializes all the defined language types.
- field_valid_language in drupal-7.x/
modules/ field/ field.multilingual.inc - Ensures that a given language code is valid.
- language_from_default in drupal-7.x/
includes/ language.inc - Returns the default language negotiation provider.
11 string references to 'language_default'
- drupal-6.locale.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.locale.database.php - DrupalWebTestCase::prepareEnvironment in drupal-7.x/
modules/ simpletest/ drupal_web_test_case.php - Prepares the current environment for running the test.
- DrupalWebTestCase::setUp in drupal-7.x/
modules/ simpletest/ drupal_web_test_case.php - Sets up a Drupal site for running functional and integration tests.
- DrupalWebTestCase::tearDown in drupal-7.x/
modules/ simpletest/ drupal_web_test_case.php - Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
- LocaleUILanguageNegotiationTest::testUILanguageNegotiation in drupal-7.x/
modules/ locale/ locale.test - Tests for language switching by URL path.
Archivo
- drupal-7.x/
includes/ bootstrap.inc, line 2764 - Functions that need to be loaded on every Drupal request.
Código
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;
}