function _nodehierarchy_widgets_autocomplete_parent_heirarchy_trail in Node Hierarchy 7.2
Same name and namespace in other branches
- 6.3 nodehierarchy_widgets/nodehierarchy_widgets.module \_nodehierarchy_widgets_autocomplete_parent_heirarchy_trail()
- 6.2 nodehierarchy_widgets/nodehierarchy_widgets.module \_nodehierarchy_widgets_autocomplete_parent_heirarchy_trail()
- 7.4 nodehierarchy_widgets/nodehierarchy_widgets.module \_nodehierarchy_widgets_autocomplete_parent_heirarchy_trail()
1 call to _nodehierarchy_widgets_autocomplete_parent_heirarchy_trail()
- nodehierarchy_widgets_autocomplete_parent in nodehierarchy_widgets/
nodehierarchy_widgets.module - Page callback for autocomplete.
File
- nodehierarchy_widgets/
nodehierarchy_widgets.module, line 68 - Alternative parent selector widgets for Node Hierarchy.
Code
function _nodehierarchy_widgets_autocomplete_parent_heirarchy_trail($item) {
$out = array();
$menu_links = _nodehierarchy_get_node_primary_ancestor_menu_links($item['nid']);
$menu_links = (array) array_pop($menu_links);
$out = array();
foreach ($menu_links as $menu_link) {
if ($menu_link) {
$out[] = $menu_link['link_title'];
}
}
return $out;
}