You are here

function _classified_get_breadcrumb_by_node in Classified Ads 6.3

Same name and namespace in other branches
  1. 7.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 222
A pure D6 classified ads module inspired by the ed_classified module.

Code

function _classified_get_breadcrumb_by_node($node) {
  $terms = 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;
}