summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-08 21:57:57 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-08 21:57:57 -0700
commite45c7803249a2ea4a6abb464fce166ae92dc6674 (patch)
tree7e4085f40085897f5e2c506e2b3c136d304e82f1 /modules/system/system.api.php
parent8458100467704359fe0447dbdca0410deda67d75 (diff)
downloadbrdo-e45c7803249a2ea4a6abb464fce166ae92dc6674.tar.gz
brdo-e45c7803249a2ea4a6abb464fce166ae92dc6674.tar.bz2
Issue #1168686 by barbi, Dave Reid: Fixed hook_menu() doc should say how to pass integer arg to callbacks.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index ece18aced..584d4a8d7 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -947,8 +947,11 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) {
* called, the corresponding path components will be substituted for the
* integers. That is, the integer 0 in an argument list will be replaced with
* the first path component, integer 1 with the second, and so on (path
- * components are numbered starting from zero). This substitution feature allows
- * you to re-use a callback function for several different paths. For example:
+ * components are numbered starting from zero). To pass an integer without it
+ * being replaced with its respective path component, use the string value of
+ * the integer (e.g., '1') as the argument value. This substitution feature
+ * allows you to re-use a callback function for several different paths. For
+ * example:
* @code
* function mymodule_menu() {
* $items['abc/def'] = array(