summaryrefslogtreecommitdiff
path: root/includes/menu.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-13 15:23:03 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-13 15:23:03 +0000
commit3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d (patch)
tree4bd9c67db94feb06249cc2727dd3a5e935f58e12 /includes/menu.inc
parentf8e14898d636ceae44a9980105da903f57d2deef (diff)
downloadbrdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.gz
brdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.bz2
- Patch #716496 by JohnAlbin: documentation updates for theme functions.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r--includes/menu.inc33
1 files changed, 14 insertions, 19 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 048980d03..4b5ca3aed 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1372,24 +1372,20 @@ function _menu_tree_data(&$links, $parents, $depth) {
}
/**
- * Preprocess the rendered tree for theme_menu_tree.
- *
- * @ingroup themeable
+ * Preprocesses the rendered tree for theme_menu_tree().
*/
function template_preprocess_menu_tree(&$variables) {
$variables['tree'] = $variables['tree']['#children'];
}
/**
- * Theme wrapper for the HTML output for a menu sub-tree.
+ * Returns HTML for a wrapper for a menu sub-tree.
*
* @param $variables
* An associative array containing:
- * - tree: @todo: document
- *
- * @return
- * A themed HTML string.
+ * - tree: An HTML string containing the tree's items.
*
+ * @see template_preprocess_menu_tree()
* @ingroup themeable
*/
function theme_menu_tree($variables) {
@@ -1397,15 +1393,12 @@ function theme_menu_tree($variables) {
}
/**
- * Generate the HTML output for a menu link and submenu.
+ * Returns HTML for a menu link and submenu.
*
* @param $variables
* An associative array containing:
* - element: Structured array data for a menu link.
*
- * @return
- * A themed HTML string.
- *
* @ingroup themeable
*/
function theme_menu_link(array $variables) {
@@ -1420,13 +1413,14 @@ function theme_menu_link(array $variables) {
}
/**
- * Generate the HTML output for a single local task link.
+ * Returns HTML for a single local task link.
*
* @param $variables
* An associative array containing:
- * - #link: A menu link array with 'title', 'href', and 'localized_options'
- * keys.
- * - #active: A boolean indicating whether the local task is active.
+ * - element: A render element containing:
+ * - #link: A menu link array with 'title', 'href', and 'localized_options'
+ * keys.
+ * - #active: A boolean indicating whether the local task is active.
*
* @ingroup themeable
*/
@@ -1451,12 +1445,13 @@ function theme_menu_local_task($variables) {
}
/**
- * Generate the HTML output for a single local action link.
+ * Returns HTML for a single local action link.
*
* @param $variables
* An associative array containing:
- * - #link: A menu link array with 'title', 'href', and 'localized_options'
- * keys.
+ * - element: A render element containing:
+ * - #link: A menu link array with 'title', 'href', and 'localized_options'
+ * keys.
*
* @ingroup themeable
*/