function page_title_load_title in Page Title 6.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()
- 7.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.
10 calls to page_title_load_title()
- blog_page_title_alter in modules/
blog.page_title.inc - Implementation of hook_page_title_alter().
- forum_page_title_alter in modules/
forum.page_title.inc - Implementation of hook_page_title_alter().
- page_title_form_forum_form_forum_alter in ./
page_title.module - Implementation of hook_form_FORM_ID_alter().
- page_title_form_taxonomy_form_term_alter in ./
page_title.module - Implementation of hook_form_FORM_ID_alter().
- page_title_form_user_profile_form_alter in ./
page_title.module - Implementation of hook_form_FORM_ID_alter().
File
- ./
page_title.module, line 498 - 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));
}