Same name and namespace in other branches
  1. 4.7.x includes/menu.inc \menu_get_active_title()
  2. 5.x includes/menu.inc \menu_get_active_title()
  3. 6.x includes/menu.inc \menu_get_active_title()
  4. 7.x includes/menu.inc \menu_get_active_title()

Returns the title of the active menu item.

Related topics

1 call to 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.

File

includes/menu.inc, line 423
API for the Drupal menu system.

Code

function menu_get_active_title() {
  $menu = menu_get_menu();
  if ($mid = menu_get_active_nontask_item()) {
    return $menu['items'][$mid]['title'];
  }
}