You are here

function biblio_term_path in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_term_path()
  2. 6 biblio.module \biblio_term_path()
  3. 7 biblio.module \biblio_term_path()

Implements hook_term_path().

Not supported in Drupal 7

File

./biblio.module, line 2191

Code

function biblio_term_path($term) {
  $base = variable_get('biblio_base', 'biblio');
  if ($term->vid == variable_get('biblio_collection_vocabulary', 0)) {
    return "{$base}/collection/{$term->name}";
  }
  elseif ($term->vid == variable_get('biblio_keyword_vocabulary', 0)) {
    return "{$base}/term_id/{$term->tid}";
  }
  else {
    return;
  }
}