menu_get_active_title

Versions
4.6 – 7
menu_get_active_title()

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

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 2135

<?php
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'];
    }
  }
}
?>
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.