| Versions | |
|---|---|
| 4.7 – 7 | menu_get_active_title() |
Returns the title of the active menu item.
includes/
<?php
function menu_get_active_title() {
if ($mid = menu_get_active_nontask_item()) {
$item = menu_get_item($mid);
return $item['title'];
}
}
?>