summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-10 21:52:36 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-10 21:52:36 +0000
commite0b8aebadaa90cfde251c86dda84dc575c56d3ea (patch)
tree6cbd48c516ce58d4fd605d1be7c31672e92e1b56 /includes
parent9b735710e9229e2ef43fbe5e7cd2130e2f9998ae (diff)
downloadbrdo-e0b8aebadaa90cfde251c86dda84dc575c56d3ea.tar.gz
brdo-e0b8aebadaa90cfde251c86dda84dc575c56d3ea.tar.bz2
- Patch #359719 by joachim, brianV: documentation for theme_menu_item().
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 9fee6e638..f162d2e3c 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1266,7 +1266,26 @@ function theme_menu_tree($tree) {
/**
* Generate the HTML output for a menu item and submenu.
*
+ * The menu item's LI element is given one of the following classes:
+ * - expanded: The menu item is showing its submenu.
+ * - collapsed: The menu item has a submenu which is not shown.
+ * - leaf: The menu item has no submenu.
+ *
* @ingroup themeable
+ *
+ * @param $link
+ * The fully-formatted link for this menu item.
+ * @param $has_children
+ * Boolean value indicating if this menu item has children.
+ * @param $menu
+ * Contains a fully-formatted submenu, if one exists for this menu item.
+ * Defaults to NULL.
+ * @param $in_active_trail
+ * Boolean determining if the current page is below the menu item in the
+ * menu system. Defaults to FALSE.
+ * @param $extra_class
+ * Extra classes that should be added to the class of the list item.
+ * Defaults to NULL.
*/
function theme_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) {
$class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf'));