function drupal_get_title

Gets the title of the current page.

The title is displayed on the page and in the title bar.

Return value

The current page's title.

9 calls to drupal_get_title()
ajax_prepare_response in drupal/core/includes/ajax.inc
Converts the return value of a page callback into an Ajax commands array.
drupal_page_set_cache in drupal/core/includes/common.inc
Stores the current page in the cache.
PageTitleFilteringTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/System/PageTitleFilteringTest.php
Implement setUp().
PageTitleFilteringTest::testTitleTags in drupal/core/modules/system/lib/Drupal/system/Tests/System/PageTitleFilteringTest.php
Tests the handling of HTML by drupal_set_title() and drupal_get_title()
shortcut_preprocess_page in drupal/core/modules/shortcut/shortcut.module
Implements hook_preprocess_HOOK() for page.tpl.php.

... See full list

File

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

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;
}