Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8e255c67
Commit
8e255c67
authored
Oct 17, 2011
by
Angie Byron
Browse files
Issue
#1234848
by mr.baileys, xjm: Fixed language_list() doc is missing return value.
parent
bf36c6cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
8e255c67
...
...
@@ -2580,9 +2580,18 @@ function language_types() {
}
/**
*
G
et a list of languages
set up
indexed by the specified key
*
R
et
urns
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__
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment