summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc15
1 files changed, 13 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 617e9ed22..18a6e5aca 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -46,6 +46,17 @@ function menu_item($in_path) {
return "<a href=\"". url($in_path) ."\"$css>". t($_gmenu[$in_path]["title"]) ."</a>";
}
+function menu_title($in_path = null) {
+ global $_gmenu;
+
+ if ($in_path == null) {
+ $trail = menu_trail();
+ $in_path = array_pop($trail);
+ }
+
+ return ucfirst($_gmenu[$in_path]["title"]);
+}
+
function menu_trail() {
global $_gmenu;
static $trail; // cache
@@ -72,13 +83,13 @@ function menu_path() {
$trail = menu_trail();
- $links = array();
+ $links[] = l(t("Home"), "");
foreach ($trail as $item) {
$links[] = menu_item($item);
}
- return implode(" &raquo; ", $links);
+ return $links;
}
function menu_help() {