drupal_get_title

Versions
5 – 7
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.

▾ 6 functions call drupal_get_title()

chameleon_page in drupal/themes/chameleon/chameleon.theme
phptemplate_page in drupal/themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php…
statistics_exit in drupal/modules/statistics/statistics.module
Implementation of hook_exit().
theme_install_page in drupal/includes/theme.inc
theme_maintenance_page in drupal/includes/theme.inc
theme_page in drupal/includes/theme.inc
Return an entire Drupal page displaying the supplied content.

Code

drupal/includes/path.inc, line 166

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.