Skip to content

Commit

Permalink
Issue #1409052 by mkadin: Fixed hook_menu() should state that auto-lo…
Browse files Browse the repository at this point in the history
…aders should return FALSE to indicate nothing found and trigger a 404.
  • Loading branch information
webchick committed Jan 31, 2012
1 parent 8abbf61 commit 2c51f2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/system/system.api.php
Expand Up @@ -1019,7 +1019,11 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) {
* @endcode * @endcode
* This 'abc' object will then be passed into the callback functions defined * This 'abc' object will then be passed into the callback functions defined
* for the menu item, such as the page callback function mymodule_abc_edit() * for the menu item, such as the page callback function mymodule_abc_edit()
* to replace the integer 1 in the argument array. * to replace the integer 1 in the argument array. Note that a load function
* should return FALSE when it is unable to provide a loadable object. For
* example, the node_load() function for the 'node/%node/edit' menu item will
* return FALSE for the path 'node/999/edit' if a node with a node ID of 999
* does not exist. The menu routing system will return a 404 error in this case.
* *
* You can also define a %wildcard_to_arg() function (for the example menu * You can also define a %wildcard_to_arg() function (for the example menu
* entry above this would be 'mymodule_abc_to_arg()'). The _to_arg() function * entry above this would be 'mymodule_abc_to_arg()'). The _to_arg() function
Expand Down

0 comments on commit 2c51f2d

Please sign in to comment.