You are here

function classified_term_path in Classified Ads 7.3

Same name and namespace in other branches
  1. 6.3 classified.module \classified_term_path()

Implements the former D6 hook_term_path().

In D7 this is no longer a hook, but functions invoke it directly to obtain a Classified Ads taxonomy path for terms in the Classified Ads vocabulary, and normal taxonomy pages otherwise.

4 calls to classified_term_path()
classified_field_formatter_view in ./classified.module
Implements hook_field_formatter_view().
_classified_get_breadcrumb_by_term in ./classified.module
Build a Classified Ad breadcrumb trail for an a term.
_classified_page_overview in ./classified.module
Page callback for 'classified'.
_classified_page_term in ./classified.module
Page callback for classified/<tid>.

File

./classified.module, line 1605
A pure D7 classified ads module inspired by the ed_classified module.

Code

function classified_term_path($term) {
  $vid = _classified_get('vid');
  $ret = $term->vid == $vid ? 'classified/' . $term->tid : 'taxonomy/term/' . $term->tid;
  return $ret;
}