drupal_get_title

  1. drupal
    1. 5 path.inc
    2. 6 path.inc
    3. 7
    4. 8
Versions
5 – 8 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.

▾ 9 functions call drupal_get_title()

drupal_page_set_cache in includes/common.inc
Store the current page in the cache.
PageTitleFiltering::setUp in modules/system/system.test
Implement setUp().
PageTitleFiltering::testTitleTags in modules/system/system.test
Tests the handling of HTML by drupal_set_title() and drupal_get_title()
shortcut_preprocess_page in modules/shortcut/shortcut.module
Implements hook_preprocess_page().
statistics_exit in modules/statistics/statistics.module
Implements hook_exit().
template_preprocess_html in includes/theme.inc
Preprocess variables for html.tpl.php
template_preprocess_maintenance_page in includes/theme.inc
The variables array generated here is a mirror of template_preprocess_page(). This preprocessor will run its course when theme_maintenance_page() is invoked.
template_preprocess_overlay in modules/overlay/overlay.module
Preprocesses template variables for overlay.tpl.php
template_process_page in includes/theme.inc
Process variables for page.tpl.php

Code

includes/bootstrap.inc, line 1763

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