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

Get the title of the current page, for display on the page and in the title bar.

4 calls to drupal_get_title()
chameleon_page in themes/chameleon/chameleon.theme
statistics_exit in modules/statistics.module
Implementation of hook_exit().
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.
xtemplate_page in themes/engines/xtemplate/xtemplate.engine

File

includes/bootstrap.inc, line 390
Functions that need to be loaded on every Drupal request.

Code

function drupal_get_title() {
  $title = drupal_set_title();
  if (!isset($title)) {

    // during a bootstrap, menu.inc is not included and thus we cannot provide a title
    if (function_exists('menu_get_active_title')) {
      $title = check_plain(menu_get_active_title());
    }
  }
  return $title;
}