function page_title_load_title in Page Title 7.2
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 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.
9 calls to page_title_load_title()
- blog_page_title_alter in modules/
blog.page_title.inc - Implements hook_page_title_alter().
- forum_page_title_alter in modules/
forum.page_title.inc - Implements hook_page_title_alter().
- page_title_form_forum_form_container_alter in ./
page_title.module - Implement hook_form_FORM_ID_alter().
- page_title_form_taxonomy_form_term_alter in ./
page_title.module - Implement hook_form_FORM_ID_alter().
- page_title_form_user_profile_form_alter in ./
page_title.module - Implement hook_form_FORM_ID_alter().
File
- ./
page_title.module, line 559 - 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();
}