You are here

function page_title_load_title in Page Title 5.2

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

Gets the page title for a type & id.

Parameters

$id: int The objects id.

$type: string What is the scope (usually 'node', 'term' or 'user').

Return value

string the page title for the given type & id.

4 calls to page_title_load_title()
page_title_form_alter in ./page_title.module
Implementation of hook_form_alter().
page_title_get_title in ./page_title.module
Simple wrapper function to get the currently set title for a page
page_title_nodeapi in ./page_title.module
Implementation of hook_nodeapi().
page_title_node_get_title in ./page_title.module
Wrapper for old function... NOTE: This has been depricated in favor of page_title_load_title().

File

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

Code

function page_title_load_title($id, $type) {
  return db_result(db_query('SELECT page_title FROM {page_title} WHERE type = "%s" AND id = %d', $type, $id));
}