You are here

function notifications_node_nid2autocomplete in Notifications 6.2

Same name and namespace in other branches
  1. 6.4 includes/node.inc \notifications_node_nid2autocomplete()
  2. 6 notifications.node.inc \notifications_node_nid2autocomplete()
  3. 6.3 notifications.node.inc \notifications_node_nid2autocomplete()
  4. 7 includes/node.inc \notifications_node_nid2autocomplete()

Generates 'title [nid:$nid]' for the autocomplete field

1 string reference to 'notifications_node_nid2autocomplete'
notifications_content_notifications in notifications_content/notifications_content.module
Implementation of hook_notifications()

File

./notifications.node.inc, line 58
Notifications node API for use by plug-in modules providing node related features

Code

function notifications_node_nid2autocomplete($nid) {
  if ($node = node_load($nid)) {
    return check_plain($node->title) . ' [nid:' . $nid . ']';
  }
  else {
    return t('Not found');
  }
}