function message_example_node_title in Message 6
Return a node title.
The node title is not sanitized by check_plain() as this be taken care of by the message module.
Parameters
$nid: The node ID.
1 string reference to 'message_example_node_title'
- message_example_comment in modules/
message_example/ message_example.module - Implementation of hook_comment().
File
- modules/
message_example/ message_example.module, line 178
Code
function message_example_node_title($nid) {
$output = '';
if ($node = node_load($nid)) {
$output = $node->title;
}
return $output;
}