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

Set the title of the current page, for display on the page and in the title bar.

25 calls to drupal_set_title()
blog_page_user in modules/blog.module
Displays a Drupal page containing recent blog entries of a given user.
book_render in modules/book.module
Menu callback; prints a listing of all books.
comment_reply in modules/comment.module
drupal_access_denied in includes/common.inc
Generates a 403 error if the request is not allowed.
drupal_get_title in includes/bootstrap.inc
Get the title of the current page, for display on the page and in the title bar.

... See full list

File

includes/bootstrap.inc, line 406
Functions that need to be loaded on every Drupal request.

Code

function drupal_set_title($title = NULL) {
  static $stored_title;
  if (isset($title)) {
    $stored_title = $title;
  }
  return $stored_title;
}