Same name and namespace in other branches
  1. 4.6.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/path.inc
Get the title of the current page, for display on the page and in the title bar.

File

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

Code

function menu_get_active_title() {
  if ($mid = menu_get_active_nontask_item()) {
    $item = menu_get_item($mid);
    return $item['title'];
  }
}