You are here

function i18n_node_nid2autocomplete in Internationalization 6

Same name and namespace in other branches
  1. 7 i18n_node/i18n_node.pages.inc \i18n_node_nid2autocomplete()

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

1 call to i18n_node_nid2autocomplete()
i18n_node_select_translation in ./i18n.pages.inc
Form to select existing nodes as translation

File

./i18n.pages.inc, line 170
User page callbacks for the translation module.

Code

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