function drupal_get_title
7.x bootstrap.inc | drupal_get_title() |
6.x path.inc | 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 calls to drupal_get_title()
- chameleon_page in drupal-6.x/
themes/ chameleon/ chameleon.theme - statistics_exit in drupal-6.x/
modules/ statistics/ statistics.module - Implementation of hook_exit().
- template_preprocess_maintenance_page in drupal-6.x/
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 drupal-6.x/
includes/ theme.inc - Process variables for page.tpl.php
File
- drupal-6.x/
includes/ path.inc, line 185 - Functions to handle paths in Drupal, including path aliasing.
Code
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;
}