Same name and namespace in other branches
  1. 4.6.x includes/bootstrap.inc \drupal_set_title()
  2. 4.7.x includes/path.inc \drupal_set_title()
  3. 5.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.

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.

56 calls to drupal_set_title()
aggregator_page_source in modules/aggregator/aggregator.pages.inc
Menu callback; displays all the items captured from a particular feed.
block_admin_configure in modules/block/block.admin.inc
Menu callback; displays the block configuration form.
blog_page_user in modules/blog/blog.pages.inc
Menu callback; displays a Drupal page containing recent blog entries of a given user.
book_admin_edit in modules/book/book.admin.inc
Build the form to administrate the hierarchy of a single book.
book_outline in modules/book/book.pages.inc
Menu callback; show the outline form for a single node.

... See full list

File

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