summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-09 18:44:55 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-09 18:44:55 +0000
commite217837372494116fd55b29be985049dee0fd0b1 (patch)
treed6bb46293e769a0c29f404b315d6764746b2a149
parent435c939f59ed52d67f36cd893d0e202a1a0d1234 (diff)
downloadbrdo-e217837372494116fd55b29be985049dee0fd0b1.tar.gz
brdo-e217837372494116fd55b29be985049dee0fd0b1.tar.bz2
- Patch #382834 by cwgordon7: more documentation fixes.
-rw-r--r--modules/menu/menu.api.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/modules/menu/menu.api.php b/modules/menu/menu.api.php
index 08f97ec3d..2dc110b26 100644
--- a/modules/menu/menu.api.php
+++ b/modules/menu/menu.api.php
@@ -25,7 +25,6 @@
* An array of menu items. Each menu item has a key corresponding to the
* Drupal path being registered. The item is an associative array that may
* contain the following key-value pairs:
- *
* - "title": Required. The untranslated title of the menu item.
* - "title callback": Function to generate the title, defaults to t().
* If you require only the raw string to be output, set this to FALSE.
@@ -38,10 +37,10 @@
* function. Integer values pass the corresponding URL component (see arg()).
* - "access callback": A function returning a boolean value that determines
* whether the user has access rights to this menu item. Defaults to
- * user_access() unless a value is inherited from a parent menu item..
+ * user_access() unless a value is inherited from a parent menu item.
* - "access arguments": An array of arguments to pass to the access callback
* function. Integer values pass the corresponding URL component.
- * - "file": A file that will be included before the callbacks are accessed.
+ * - "file": A file that will be included before the callbacks are accessed;
* this allows callback functions to be in separate files. The file should
* be relative to the implementing module's directory unless otherwise
* specified by the "file path" option.
@@ -50,10 +49,10 @@
* - "load arguments": An array of arguments to be passed to each of the
* object loaders in the path. For example, for the router item at
* node/%node/revisions/%/view, the array(1, 3) will call node_load() with
- * the arguments corresponding to the second and fourth url argument;
- * as with other arguments, integers are automatically cast to url
+ * the arguments corresponding to the second and fourth URL argument;
+ * as with other arguments, integers are automatically cast to URL
* arguments. There are also two "magic" values: "%index" will correspond
- * to the url index where the object's load function is specified; "%map"
+ * to the URL index where the object's load function is specified; "%map"
* will correspond to the full menu map, passed in by reference to the
* load function.
* - "weight": An integer that determines relative position of items in the
@@ -73,12 +72,9 @@
* - MENU_DEFAULT_LOCAL_TASK: Every set of local tasks should provide one
* "default" task, that links to the same path as its parent when clicked.
* If the "type" key is omitted, MENU_NORMAL_ITEM is assumed.
- *
* For a detailed usage example, see page_example.module.
- *
* For comprehensive documentation on the menu system, see
* http://drupal.org/node/102338.
- *
*/
function hook_menu() {
$items = array();