drupal_get_title

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

▾ 4 functions call 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

Code

includes/path.inc, line 182

<?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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.