summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-28 07:51:09 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-28 07:51:09 +0000
commit20b62b2911eff2c5961819b66e4b6464a68cc52b (patch)
tree5e036cf656f3e0f9f3b42a17703ebb556d032f7d /modules
parentae433184f57c1ca230a7f207dcb4197fa73b1500 (diff)
downloadbrdo-20b62b2911eff2c5961819b66e4b6464a68cc52b.tar.gz
brdo-20b62b2911eff2c5961819b66e4b6464a68cc52b.tar.bz2
#1022172 by montesq: Fixed Missing return in example hook_menu code
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 1356dd629..ea4255c74 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -925,6 +925,7 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) {
* $items['abc/def'] = array(
* 'page callback' => 'mymodule_abc_view',
* );
+ * return $items;
* }
*
* function mymodule_abc_view($ghi = 0, $jkl = '') {
@@ -953,6 +954,7 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) {
* 'page callback' => 'mymodule_abc_view',
* 'page arguments' => array(1, 'foo'),
* );
+ * return $items;
* }
* @endcode
* When path 'abc/def' is requested, the page callback function will get 'def'