function _biblio_format_keyword in Bibliography Module 7
Same name and namespace in other branches
- 6.2 includes/biblio.pages.inc \_biblio_format_keyword()
- 6 biblio.pages.inc \_biblio_format_keyword()
- 7.2 includes/biblio.pages.inc \_biblio_format_keyword()
1 call to _biblio_format_keyword()
- _biblio_format_keyword_page in includes/
biblio.pages.inc
File
- includes/
biblio.pages.inc, line 1489 - Copyright (C) 2006-2011 Ron Jerome.
Code
function _biblio_format_keyword($uri, $keyword) {
$base = variable_get('biblio_base', 'biblio');
$uri['path'] = $base;
$uri['query']['f']['keyword'] = $keyword->kid;
$format = l(trim($keyword->word), $base, $uri);
$format .= ' (' . $keyword->cnt . ') ';
$destination = drupal_get_destination();
$path = ord(substr($_GET['q'], -1)) > 97 ? $_GET['q'] . "/" : substr($_GET['q'], 0, -1);
$edit_link = ' [' . l(t('edit'), $path . $keyword->kid . "/edit", array(
'query' => $destination,
)) . '] ';
$format .= user_access('administer biblio') ? $edit_link : '';
return $format;
}