function drupal_get_title

7.x drupal_get_title()
5.x drupal_get_title()
6.x 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()
drupal_page_set_cache in drupal/includes/
Stores the current page in the cache.
PageTitleFiltering::setUp in drupal/modules/system/system.test
Implement setUp().
PageTitleFiltering::testTitleTags in drupal/modules/system/system.test
Tests the handling of HTML by drupal_set_title() and drupal_get_title()
shortcut_preprocess_page in drupal/modules/shortcut/shortcut.module
Implements hook_preprocess_page().
statistics_exit in drupal/modules/statistics/statistics.module
Implements hook_exit().

... See full list


drupal/includes/, line 1865
Functions that need to be loaded on every Drupal request.


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

  // During a bootstrap, 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;