menu_get_active_title

Versions
4.6 – 7
menu_get_active_title()

Returns the title of the active menu item.

Related topics

▾ 1 function calls menu_get_active_title()

drupal_get_title in includes/bootstrap.inc
Get the title of the current page, for display on the page and in the title bar.

Code

includes/menu.inc, line 423

<?php
function menu_get_active_title() {
  $menu = menu_get_menu();

  if ($mid = menu_get_active_nontask_item()) {
    return $menu['items'][$mid]['title'];
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.