| 5 path.inc | drupal_set_title($title = NULL) |
| 6 path.inc | drupal_set_title($title = NULL) |
| 7 bootstrap.inc | drupal_set_title($title = NULL, $output = CHECK_PLAIN) |
| 8 bootstrap.inc | drupal_set_title($title = NULL, $output = CHECK_PLAIN) |
Set the title of the current page, for display on the page and in the title bar.
Parameters
$title: Optional string value to assign to the page title; or if set to NULL (default), leaves the current title unchanged.
Return value
The updated title of the current page.
42 calls to drupal_set_title()
File
- includes/
path.inc, line 188 - Functions to handle paths in Drupal, including path aliasing.
Code
function drupal_set_title($title = NULL) {
static $stored_title;
if (isset($title)) {
$stored_title = $title;
}
return $stored_title;
}
Login or register to post comments