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.

▾ 5 functions call drupal_get_title()

shortcut_page_build in modules/shortcut/shortcut.module
Implement hook_page_build().
statistics_exit in modules/statistics/statistics.module
Implement 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 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
Preprocess variables for page.tpl.php

Code

includes/path.inc, line 283

<?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.