language_default

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 7 language_default($property = NULL)
8 language_default()

Default language used on the site

Parameters

$property Optional property of the language object to return

▾ 28 functions call language_default()

contact_site_form_submit in modules/contact/contact.pages.inc
Form submission handler for contact_site_form().
DrupalWebTestCase::setUp in modules/simpletest/drupal_web_test_case.php
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
drupal_language_initialize in includes/bootstrap.inc
Initialize all the defined language types.
EmailExampleTestCase::testContactForm in examples/email_example/email_example.test
Verify the functionality of the example module.
email_example_mail_send in examples/email_example/email_example.module
Sends an e-mail.
field_valid_language in modules/field/field.multilingual.inc
Ensures that a given language code is valid.
language_from_default in includes/language.inc
Default language provider.
language_initialize in includes/language.inc
Choose a language for the given type based on language negotiation settings.
language_list in includes/bootstrap.inc
Get a list of languages set up indexed by the specified key
language_negotiation_info in includes/language.inc
Return all the defined language providers.
LocaleUrlRewritingTest::testUrlRewritingEdgeCases in modules/locale/locale.test
Check that disabled or non-installed languages are not considered.
locale_form_node_form_alter in modules/locale/locale.module
Implements hook_form_BASE_FORM_ID_alter().
locale_languages_delete_form in modules/locale/locale.admin.inc
User interface for the language deletion confirmation screen.
locale_languages_edit_form_submit in modules/locale/locale.admin.inc
Process the language editing form submission.
locale_languages_edit_form_validate in modules/locale/locale.admin.inc
Validate the language editing form. Reused for custom language addition too.
locale_languages_overview_form in modules/locale/locale.admin.inc
User interface for the language overview screen.
locale_languages_overview_form_submit in modules/locale/locale.admin.inc
Process language overview form submissions, updating existing languages.
locale_language_url_fallback in includes/locale.inc
Determines the language to be assigned to URLs when none is detected.
locale_translate_edit_form in modules/locale/locale.admin.inc
User interface for string editing.
locale_update_7001 in modules/locale/locale.install
Upgrade language negotiation settings.
PathMonolingualTestCase::setUp in modules/path/path.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
system_send_email_action in modules/system/system.module
Sends an e-mail message.
template_preprocess_maintenance_page in includes/theme.inc
The variables array generated here is a mirror of template_preprocess_page(). This preprocessor will run its course when theme_maintenance_page() is invoked.
theme_locale_languages_overview_form in modules/locale/locale.admin.inc
Returns HTML for the language overview form.
user_preferred_language in modules/user/user.module
Get the language object preferred by the user. This user preference can be set on the user account editing page, and is only available if there are more than one languages enabled on the site. If the user did not choose a preferred language, or is the…
_locale_rebuild_js in includes/locale.inc
(Re-)Creates the JavaScript translation file for a language.
_update_cron_notify in modules/update/update.fetch.inc
Perform any notifications that should be done once cron fetches new data.
_user_mail_notify in modules/user/user.module
Conditionally create and send a notification email when a certain operation happens on the given user account.

Code

includes/bootstrap.inc, line 2582

<?php
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;
}
?>