summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2016-02-01 23:57:32 -0500
committerDavid Rothstein <drothstein@gmail.com>2016-02-01 23:57:32 -0500
commit70aafbab880d9c67b91cb3c18c01b3e13a60df8b (patch)
tree655b624b4c495799d804388c2ed31ff005749cb2
parente6e00e8444caa3dce647ce46b01256084ce2048c (diff)
downloadbrdo-70aafbab880d9c67b91cb3c18c01b3e13a60df8b.tar.gz
brdo-70aafbab880d9c67b91cb3c18c01b3e13a60df8b.tar.bz2
Issue #2622012 by walangitan, snehi, Shreya Shetty, rashid_786, joachim, jhodgdon: Fix documentation errors in language_default()
-rw-r--r--includes/bootstrap.inc8
1 files changed, 6 insertions, 2 deletions
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' => ''));