function _biblio_keyword_links in Bibliography Module 7
Same name and namespace in other branches
- 5 biblio.module \_biblio_keyword_links()
- 6.2 includes/biblio.pages.inc \_biblio_keyword_links()
- 6 biblio.pages.inc \_biblio_keyword_links()
- 7.2 includes/biblio.theme.inc \_biblio_keyword_links()
2 calls to _biblio_keyword_links()
- theme_biblio_long in includes/
biblio_theme.inc - Theme function for biblio_long.
- theme_biblio_tabular in includes/
biblio_theme.inc
File
- includes/
biblio_theme.inc, line 1303
Code
function _biblio_keyword_links($keywords, $base = 'biblio') {
$uri = drupal_parse_url(request_uri());
$uri['path'] = variable_get('biblio_base', 'biblio');
$uri['attributes'] = array(
'rel' => 'nofollow',
);
$html = "";
if (!is_array($keywords)) {
require_once drupal_get_path('module', 'biblio') . '/includes/biblio.keywords.inc';
$keywords = biblio_explode_keywords($keywords);
}
$sep = variable_get('biblio_keyword_sep', ',');
foreach ($keywords as $kid => $keyword) {
$uri['query']['f']['keyword'] = $kid;
$linked_keywords[] = l(trim($keyword), $base, $uri);
}
return implode("{$sep} ", $linked_keywords);
}