]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated documentation of functions used in creating the topbar tools dropdown menu
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 10 Nov 2009 12:45:29 +0000 (12:45 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 10 Nov 2009 12:45:29 +0000 (12:45 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3660 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index f67220f5778ecc0c369577641ce34cdc8f9559ee..85685272917027d7a41ecdfa36c80a0397dcd8aa 100644 (file)
@@ -1332,10 +1332,13 @@ function get_register($register_name) {
 
 /**
  * Adds an item to the menu register
+ * This is used in the core to create the tools dropdown menu
+ * You can obtain the menu array by calling get_register('menu')
  *
- * @param string $menu_name The name of the top-level menu
+ * @param string $menu_name The name of the menu item
  * @param string $menu_url The URL of the page
- * @param array $menu_children Optionally, an array of submenu items
+ * @param array $menu_children Optionally, an array of submenu items (not currently used)
+ * @param string $context (not used and will likely be deprecated)
  * @return true|false Depending on success
  */
 function add_menu($menu_name, $menu_url, $menu_children = array(), $context = "") {
@@ -1354,6 +1357,7 @@ function add_menu($menu_name, $menu_url, $menu_children = array(), $context = ""
 
 /**
  * Returns a menu item for use in the children section of add_menu()
+ * This is not currently used in the Elgg core
  *
  * @param string $menu_name The name of the menu item
  * @param string $menu_url Its URL