Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
769f1867
Commit
769f1867
authored
Aug 05, 2010
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#851348
by mr.baileys: Fixed Fix doc: menu_tree() returns a renderable array, not rendered HTML.
parent
98745678
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
includes/menu.inc
includes/menu.inc
+3
-2
No files found.
includes/menu.inc
View file @
769f1867
...
...
@@ -865,7 +865,7 @@ function menu_get_object($type = 'node', $position = 1, $path = NULL) {
}
/**
* Render a menu tree based on the current path.
* Render
s
a menu tree based on the current path.
*
* The tree is expanded based on the current path and dynamic paths are also
* changed according to the defined to_arg functions (for example the 'My
...
...
@@ -875,7 +875,8 @@ function menu_get_object($type = 'node', $position = 1, $path = NULL) {
* The name of the menu.
*
* @return
* The rendered HTML of that menu on the current page.
* A structured array representing the specified menu on the current page, to
* be rendered by drupal_render().
*/
function
menu_tree
(
$menu_name
)
{
$menu_output
=
&
drupal_static
(
__FUNCTION__
,
array
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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