You are here

function page_title_set_title in Page Title 5

Same name and namespace in other branches
  1. 8.2 page_title.module \page_title_set_title()
  2. 5.2 page_title.module \page_title_set_title()
  3. 6.2 page_title.module \page_title_set_title()
  4. 7.2 page_title.module \page_title_set_title()
  5. 7 page_title.module \page_title_set_title()

Sets or retrieves the page title of the current page.

Parameters

$title: string The page title to set.

Return value

string The current page's title.

2 calls to page_title_set_title()
page_title_nodeapi in ./page_title.module
Implementation of hook_nodeapi().
page_title_page_get_title in ./page_title.module
Determines what title should be sent to the page template.

File

./page_title.module, line 143
Enhanced control over the page title (in the head tag).

Code

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