function _nodehierarchy_widgets_autocomplete_parent_value in Node Hierarchy 6.2
Same name and namespace in other branches
- 6.3 nodehierarchy_widgets/nodehierarchy_widgets.module \_nodehierarchy_widgets_autocomplete_parent_value()
- 7.4 nodehierarchy_widgets/nodehierarchy_widgets.module \_nodehierarchy_widgets_autocomplete_parent_value()
- 7.2 nodehierarchy_widgets/nodehierarchy_widgets.module \_nodehierarchy_widgets_autocomplete_parent_value()
Get the default display value for a node hierarchy autocomplete.
1 call to _nodehierarchy_widgets_autocomplete_parent_value()
- nodehierarchy_widgets_nodehierarchy_get_parent_selector in nodehierarchy_widgets/
nodehierarchy_widgets.module - Implementation of hook_nodehierarchy_get_parent_selector().
File
- nodehierarchy_widgets/
nodehierarchy_widgets.module, line 155 - Alternative parent selector widgets for Node Hierarchy.
Code
function _nodehierarchy_widgets_autocomplete_parent_value($pnid) {
if ($pnid && ($item = node_load($pnid))) {
return $item->title . ' [nid:' . $item->nid . ']';
}
}