function _biblio_keyword_links in Bibliography Module 7.2
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 includes/biblio_theme.inc \_biblio_keyword_links()
2 calls to _biblio_keyword_links()
- theme_biblio_long in includes/
biblio.theme.inc - DEPRECIATED! this was the original output format which is not to flexable it will be removed TODO: remove this function
- theme_biblio_tabular in includes/
biblio.theme.inc
File
- includes/
biblio.theme.inc, line 1101
Code
function _biblio_keyword_links($keywords, $base = 'biblio') {
$uri = drupal_parse_url(request_uri());
$uri['path'] = variable_get('biblio_base', 'biblio');
$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);
}