function _classified_get_breadcrumb_by_node in Classified Ads 7.3
Same name and namespace in other branches
- 6.3 classified.module \_classified_get_breadcrumb_by_node()
Build a breadcrumb trail for an a Classified Ad node.
Parameters
object $node: A fully loaded Classified Ad node.
Return value
array A breadcrumb trail array.
1 call to _classified_get_breadcrumb_by_node()
- classified_view in ./
classified.module - Implements hook_view().
File
- ./
classified.module, line 203 - A pure D7 classified ads module inspired by the ed_classified module.
Code
function _classified_get_breadcrumb_by_node($node) {
$terms = _classified_taxonomy_node_get_terms_by_vocabulary($node, _classified_get('vid'));
$term = empty($terms) ? NULL : reset($terms);
$ret = _classified_get_breadcrumb_by_term($term, TRUE);
return $ret;
}