Full ELMS Learning Network documentation
function language_default
cis7 bootstrap.inc | language_default($property = NULL) |
cle7 bootstrap.inc | language_default($property = NULL) |
elmsmedia7 bootstrap.inc | language_default($property = NULL) |
icor7 bootstrap.inc | language_default($property = NULL) |
meedjum_blog7 bootstrap.inc | language_default($property = NULL) |
mooc7 bootstrap.inc | language_default($property = NULL) |
Returns the default language used on the site
Parameters
$property: Optional property of the language object to return
43 calls to language_default()
- accessibility_accessibility_get_test_translation in sites/
all/ modules/ ulmus/ accessibility/ accessibility.module - Implements hook_accessibility_get_test_translation().
- backup_migrate_filter_statusnotify::backup_fail in sites/
all/ modules/ ulmus/ backup_migrate/ includes/ filters.statusnotify.inc - Send the failure email.
- backup_migrate_filter_statusnotify::backup_succeed in sites/
all/ modules/ ulmus/ backup_migrate/ includes/ filters.statusnotify.inc - Send the success email.
- ckeditor_link_ckeditor_link_i18n_menu_revert in sites/
all/ modules/ ulmus/ ckeditor_link/ includes/ ckeditor_link.i18n_menu.inc - Implementation of hook_ckeditor_link_TYPE_revert().
- ckeditor_link_url in sites/
all/ modules/ ulmus/ ckeditor_link/ ckeditor_link.module
11 string references to 'language_default'
- drupal-6.locale.database.php in modules/
simpletest/ tests/ upgrade/ drupal-6.locale.database.php - DrupalWebTestCase::prepareEnvironment in modules/
simpletest/ drupal_web_test_case.php - Prepares the current environment for running the test.
- DrupalWebTestCase::setUp in modules/
simpletest/ drupal_web_test_case.php - Sets up a Drupal site for running functional and integration tests.
- DrupalWebTestCase::tearDown in 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.
- locale_add_language in includes/
locale.inc - API function to add a language.
File
- includes/
bootstrap.inc, line 2765 - 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;
}