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/path.inc
Get the title of the current page, for display on the page and in the title bar.

Code

includes/menu.inc, line 490

<?php
function menu_get_active_title() {
  if ($mid = menu_get_active_nontask_item()) {
    $item = menu_get_item($mid);
    return $item['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.