You are here

function _biblio_filter_footnote_callback in Bibliography Module 6.2

Same name and namespace in other branches
  1. 5 biblio.module \_biblio_filter_footnote_callback()
  2. 6 biblio.module \_biblio_filter_footnote_callback()
  3. 7 biblio.module \_biblio_filter_footnote_callback()
  4. 7.2 biblio.module \_biblio_filter_footnote_callback()
1 string reference to '_biblio_filter_footnote_callback'
biblio_filter in ./biblio.module
Implements hook_filter().

File

./biblio.module, line 2253
Main file for Drupal module biblio.

Code

function _biblio_filter_footnote_callback($matches, $square_brackets = FALSE) {
  if ($square_brackets) {
    $text = '[fn]' . _biblio_citekey_print($matches[1]) . "</fn>";
  }
  else {
    $text = '<fn>' . _biblio_citekey_print($matches[1]) . "</fn>";
  }
  return $text;
}