You are here

function biblio_term_path in Bibliography Module 6

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

File

./biblio.module, line 2104

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;
  }
}