function page_title_node_get_title in Page Title 6
Same name and namespace in other branches
- 8.2 page_title.module \page_title_node_get_title()
- 5.2 page_title.module \page_title_node_get_title()
- 5 page_title.module \page_title_node_get_title()
- 6.2 page_title.module \page_title_node_get_title()
- 7.2 page_title.module \page_title_node_get_title()
- 7 page_title.module \page_title_node_get_title()
Gets the page title for a node id.
Parameters
$nid: int The node's id.
Return value
string The node's page title.
1 call to page_title_node_get_title()
- page_title_nodeapi in ./
page_title.module - Implementation of hook_nodeapi().
File
- ./
page_title.module, line 268 - Enhanced control over the page title (in the head tag).
Code
function page_title_node_get_title($nid) {
return db_result(db_query('SELECT page_title FROM {page_title} WHERE nid = %d', $nid));
}