function page_title_load_title in Page Title 7
Same name and namespace in other branches
- 8.2 page_title.module \page_title_load_title()
- 5.2 page_title.module \page_title_load_title()
- 6.2 page_title.module \page_title_load_title()
- 7.2 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 - Implement 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_node_get_title in ./
page_title.module - Wrapper for old function... NOTE: This has been depricated in favor of page_title_load_title().
- page_title_node_load in ./
page_title.module - Implement hook_node_load().
File
- ./
page_title.module, line 406 - Enhanced control over the page title (in the head tag).
Code
function page_title_load_title($id, $type) {
return db_query('SELECT page_title FROM {page_title} WHERE type = :type AND id = :id', array(
':type' => $type,
':id' => $id,
))
->fetchField();
}