summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-10-17 09:22:34 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-10-17 09:22:34 -0700
commit242bf227bb2c7083c8e1438bf3f32a8bdde59f09 (patch)
tree0c15f1413857374e791eb92b5f9b17ece8eacd49 /includes
parent9ebcbc701b2a4b9024eb00a744ba9e77b87219b1 (diff)
downloadbrdo-242bf227bb2c7083c8e1438bf3f32a8bdde59f09.tar.gz
brdo-242bf227bb2c7083c8e1438bf3f32a8bdde59f09.tar.bz2
Issue #1234848 by mr.baileys, xjm: Fixed language_list() doc is missing return value.
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 758eb94c6..decb91136 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2556,9 +2556,18 @@ function language_types() {
}
/**
- * Get a list of languages set up indexed by the specified key
+ * Returns a list of installed languages, indexed by the specified key.
*
- * @param $field The field to index the list with.
+ * @param $field
+ * (optional) The field to index the list with.
+ *
+ * @return
+ * An associative array, keyed on the values of $field.
+ * - If $field is 'weight' or 'enabled', the array is nested, with the outer
+ * array's values each being associative arrays with language codes as
+ * keys and language objects as values.
+ * - For all other values of $field, the array is only one level deep, and
+ * the array's values are language objects.
*/
function language_list($field = 'language') {
$languages = &drupal_static(__FUNCTION__);