From 70aafbab880d9c67b91cb3c18c01b3e13a60df8b Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 1 Feb 2016 23:57:32 -0500 Subject: Issue #2622012 by walangitan, snehi, Shreya Shetty, rashid_786, joachim, jhodgdon: Fix documentation errors in language_default() --- includes/bootstrap.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'includes/bootstrap.inc') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index e9665eb40..940eaa53d 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2786,10 +2786,14 @@ function language_list($field = 'language') { } /** - * Returns the default language used on the site + * Returns the default language, as an object, or one of its properties. * * @param $property - * Optional property of the language object to return + * (optional) The property of the language object to return. + * + * @return + * Either the language object for the default language used on the site, + * or the property of that object named in the $property parameter. */ 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' => '')); -- cgit v1.2.3