You are here

function theme_biblio_publisher_link in Bibliography Module 5

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

File

./biblio.module, line 1108

Code

function theme_biblio_publisher_link($publisher, $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($publisher), "{$base}/publisher/" . trim($publisher), NULL, $query);
}