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

Get the title of the current page, as determined by the active trail.

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 1630
API for the Drupal menu system.

Code

function menu_get_active_title() {
  $active_trail = menu_get_active_trail();
  foreach (array_reverse($active_trail) as $item) {
    if (!(bool) ($item['type'] & MENU_IS_LOCAL_TASK)) {
      return $item['title'];
    }
  }
}