summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-26 22:48:04 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-26 22:48:04 -0700
commit9de419ad677111fb7e13b1cc1959fd959308f485 (patch)
tree50c73d95f6db34c9bef9ce70a49b659deeb02173 /modules/system/system.api.php
parent9e4692997475695a89dac2364b31cef4592780c2 (diff)
downloadbrdo-9de419ad677111fb7e13b1cc1959fd959308f485.tar.gz
brdo-9de419ad677111fb7e13b1cc1959fd959308f485.tar.bz2
Issue #1182970 by mr.baileys: Improvements to hook_menu() documentation.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index a462e868a..400538900 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -964,9 +964,12 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) {
* When path 'abc/def' is requested, the page callback function will get 'def'
* as the first argument and (always) 'foo' as the second argument.
*
- * Note that if a page or theme callback function has an argument list array,
- * these arguments will be passed first to the function, followed by any
- * any arguments generated by optional path arguments as described above.
+ * If a page callback function uses an argument list array, and its path is
+ * requested with optional path arguments, then the list array's arguments are
+ * passed to the callback function first, followed by the optional path
+ * arguments. Using the above example, when path 'abc/def/bar/baz' is requested,
+ * mymodule_abc_view() will be called with 'def', 'foo', 'bar' and 'baz' as
+ * arguments, in that order.
*
* Special care should be taken for the page callback drupal_get_form(), because
* your specific form callback function will always receive $form and