function notifications_node_nid2title in Notifications 6
Same name and namespace in other branches
- 6.4 includes/node.inc \notifications_node_nid2title()
- 6.2 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
2 string references to 'notifications_node_nid2title'
- notifications_content_notifications in notifications_content/
notifications_content.module - Implementation of hook_notifications()
- notifications_feed_notifications in notifications_feed/
notifications_feed.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');
}
}