summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-09-11 17:44:38 -0400
committerDries Buytaert <dries@buytaert.net>2011-09-11 17:44:38 -0400
commitc8334a088ff96ff23b6f4f5f887b4b2bfc35f03e (patch)
treedad056c4dd34e9170933cc8614b301a4ae656a84 /modules
parenta2e549e35c4fa798a6b386fc4d3e2841b450fcf6 (diff)
downloadbrdo-c8334a088ff96ff23b6f4f5f887b4b2bfc35f03e.tar.gz
brdo-c8334a088ff96ff23b6f4f5f887b4b2bfc35f03e.tar.bz2
- Patch #1257638 by michaellenahan, Bès: hook_menu() example should be changed to not suggest admin/config/foo as path.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index ae13d49f8..3c18f176e 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -1053,24 +1053,24 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) {
* MENU_LOCAL_TASK. Example:
* @code
* // Make "Foo settings" appear on the admin Config page
- * $items['admin/config/foo'] = array(
+ * $items['admin/config/system/foo'] = array(
* 'title' => 'Foo settings',
* 'type' => MENU_NORMAL_ITEM,
* // Page callback, etc. need to be added here.
* );
- * // Make "Global settings" the main tab on the "Foo settings" page
- * $items['admin/config/foo/global'] = array(
- * 'title' => 'Global settings',
+ * // Make "Tab 1" the main tab on the "Foo settings" page
+ * $items['admin/config/system/foo/tab1'] = array(
+ * 'title' => 'Tab 1',
* 'type' => MENU_DEFAULT_LOCAL_TASK,
* // Access callback, page callback, and theme callback will be inherited
- * // from 'admin/config/foo', if not specified here to override.
+ * // from 'admin/config/system/foo', if not specified here to override.
* );
- * // Make an additional tab called "Node settings" on "Foo settings"
- * $items['admin/config/foo/node'] = array(
- * 'title' => 'Node settings',
+ * // Make an additional tab called "Tab 2" on "Foo settings"
+ * $items['admin/config/system/foo/tab2'] = array(
+ * 'title' => 'Tab 2',
* 'type' => MENU_LOCAL_TASK,
* // Page callback and theme callback will be inherited from
- * // 'admin/config/foo', if not specified here to override.
+ * // 'admin/config/system/foo', if not specified here to override.
* // Need to add access callback or access arguments.
* );
* @endcode