You are here

function biblio_term_path in Bibliography Module 7

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

File

./biblio.module, line 2299
Bibliography Module for Drupal.

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