You are here

function drupal_set_title in Drupal 5

Same name and namespace in other branches
  1. 4 includes/path.inc \drupal_set_title()
  2. 6 includes/path.inc \drupal_set_title()
  3. 7 includes/bootstrap.inc \drupal_set_title()

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.

55 calls to drupal_set_title()
block_admin_configure in modules/block/block.module
Menu callback; displays the block configuration form.
blog_page_user in modules/blog/blog.module
Displays a Drupal page containing recent blog entries of a given user.
book_admin_edit in modules/book/book.module
Display an administrative view of the hierarchy of a book.
book_outline in modules/book/book.module
Implementation of function book_outline() Handles all book outline operations.
comment_form_add_preview in modules/comment/comment.module

... See full list

File

includes/path.inc, line 187
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;
}