| 5 path.inc | drupal_get_title() |
| 6 path.inc | drupal_get_title() |
| 7 bootstrap.inc | drupal_get_title() |
| 8 bootstrap.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.
File
- includes/
path.inc, line 185 - Functions to handle paths in Drupal, including path aliasing.
Code
<?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