You are here

function theme_biblio_type_link in Bibliography Module 5

1 theme call to theme_biblio_type_link()
biblio_show_node in ./biblio.module

File

./biblio.module, line 1120

Code

function theme_biblio_type_link($type_name, $tid, $base = 'biblio') {
  $query = NULL;
  foreach ($_GET as $key => $value) {
    if ($key != 'q') {
      $query .= $key . '=' . $value;

      // $query will contain any addional URL query elements not related to this module
    }
  }
  if (!empty($query)) {
    $query = '&' . $query;
  }
  return l(trim($type_name), "{$base}/type/" . trim($tid), NULL, $query);
}