Same name and namespace in other branches
  1. 4.6.x includes/bootstrap.inc \drupal_get_title()
  2. 4.7.x includes/path.inc \drupal_get_title()
  3. 5.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.

Return value

The current page's title.

4 calls to drupal_get_title()
chameleon_page in themes/chameleon/chameleon.theme
statistics_exit in modules/statistics/statistics.module
Implementation of hook_exit().
template_preprocess_maintenance_page in includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables…
template_preprocess_page in includes/theme.inc
Process variables for page.tpl.php

File

includes/path.inc, line 185
Functions to handle paths in Drupal, including path aliasing.

Code

function drupal_get_title() {
  $title = drupal_set_title();

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