Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
221
Merge Requests
221
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
02782894
Commit
02782894
authored
Jun 28, 2013
by
jhodgdon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2027351
by longwave, helenkim, YesCT: Tidy up grammar around arrays in menu.inc docs
parent
cba80407
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
core/includes/menu.inc
core/includes/menu.inc
+9
-9
No files found.
core/includes/menu.inc
View file @
02782894
...
...
@@ -446,7 +446,7 @@ function menu_set_item($path, $router_item) {
* Gets a router item.
*
* @param $path
* The path
, for example node/5
. The function will find the corresponding
* The path
; for example, 'node/5'
. The function will find the corresponding
* node/% item and return that.
* @param $router_item
* Internal use only.
...
...
@@ -508,7 +508,7 @@ function menu_get_item($path = NULL, $router_item = NULL) {
* @param $item
* A menu router or menu link item
* @param $map
* An array of path arguments
(ex: array('node', '5'))
* An array of path arguments
; for example, array('node', '5').
*
* @return
* Returns TRUE for success, FALSE if an object cannot be loaded.
...
...
@@ -578,7 +578,7 @@ function _menu_load_objects(&$item, &$map) {
* @param $item
* A menu router or menu link item
* @param $map
* An array of path arguments
(ex: array('node', '5'))
* An array of path arguments
; for example, array('node', '5').
*
* @return
* $item['access'] becomes TRUE if the item is accessible, FALSE otherwise.
...
...
@@ -727,7 +727,7 @@ function _menu_item_localize(&$item, $map, $link_translate = FALSE) {
* @param $router_item
* A menu router item
* @param $map
* An array of path arguments
(ex: array('node', '5'))
* An array of path arguments
; for example, array('node', '5').
* @param $to_arg
* Execute $item['to_arg_functions'] or not. Use only if you want to render a
* path from the menu table, for example tabs.
...
...
@@ -802,9 +802,9 @@ function _menu_translate(&$router_item, $map, $to_arg = FALSE) {
* Translates the path elements in the map using any to_arg helper function.
*
* @param $map
* An array of path arguments
(ex: array('node', '5'))
* An array of path arguments
; for example, array('node', '5').
* @param $to_arg_functions
* An array of helper function
(ex: array(2 => 'menu_tail_to_arg'))
* An array of helper function
s; for example, array(2 => 'menu_tail_to_arg').
*
* @see hook_menu()
*/
...
...
@@ -958,7 +958,7 @@ function _menu_link_translate(&$item, $translate = FALSE) {
* @param string $href
* Menu path as returned by $item['href'] of menu_get_item().
* @param array $map
* An array of path arguments
,
for example, array('node', '5').
* An array of path arguments
;
for example, array('node', '5').
*
* @return bool
* TRUE if the user has access or FALSE if the user should be presented
...
...
@@ -2168,7 +2168,7 @@ function menu_local_tasks($level = 0) {
* example 'node' or 'admin/structure/block/manage'.
* @param $args
* A list of dynamic path arguments to append to $parent_path to form the
* fully-qualified menu router path
, for example
array(123) for a certain
* fully-qualified menu router path
; for example,
array(123) for a certain
* node or array('system', 'tools') for a certain block.
*
* @return
...
...
@@ -2485,7 +2485,7 @@ function menu_set_active_trail($new_trail = NULL) {
* Looks up the preferred menu link for a given system path.
*
* @param $path
* The path
, for example
'node/5'. The function will find the corresponding
* The path
; for example,
'node/5'. The function will find the corresponding
* menu link ('node/5' if it exists, or fallback to 'node/%').
* @param $selected_menu
* The name of a menu used to restrict the search for a preferred menu link.
...
...
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