function notifications_node_nid2title in Notifications 7
Same name and namespace in other branches
- 6.4 includes/node.inc \notifications_node_nid2title()
- 6 notifications.node.inc \notifications_node_nid2title()
- 6.2 notifications.node.inc \notifications_node_nid2title()
- 6.3 notifications.node.inc \notifications_node_nid2title()
Mapping from node nid to title
File
- includes/
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');
}
}