function notifications_node_nid2title in Notifications 6.2
Same name and namespace in other branches
- 6.4 includes/node.inc \notifications_node_nid2title()
- 6 notifications.node.inc \notifications_node_nid2title()
- 6.3 notifications.node.inc \notifications_node_nid2title()
- 7 includes/node.inc \notifications_node_nid2title()
Mapping from node nid to title
1 string reference to 'notifications_node_nid2title'
- notifications_content_notifications in notifications_content/
notifications_content.module - Implementation of hook_notifications()
File
- ./
notifications.node.inc, line 14 - Notifications node API for use by plug-in modules providing node related features
Code
function notifications_node_nid2title($nid, $html = FALSE) {
if ($node = node_load($nid)) {
return $html ? l($node->title, "node/{$nid}") : check_plain($node->title);
}
else {
return t('Not found');
}
}