You are here

function biblio_remove_brace in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_remove_brace()
  2. 7 biblio.module \biblio_remove_brace()
  3. 7.2 biblio.module \biblio_remove_brace()
4 calls to biblio_remove_brace()
biblio_block in ./biblio.module
Implementation of hook_block().
biblio_show_results in ./biblio.pages.inc
biblio_show_results takes the query results from biblio_db_search and adds some controls to the page then loops through the results applying the selected style to each entry
biblio_view in ./biblio.module
Implementation of hook_view().
_biblio_export in ./biblio.import.export.inc

File

./biblio.module, line 1040

Code

function biblio_remove_brace($title_string) {

  //$title_string = utf8_encode($title_string);
  $matchpattern = '/\\{\\$(?:(?!\\$\\}).)*\\$\\}|(\\{[^}]*\\})/';
  $output = preg_replace_callback($matchpattern, 'biblio_remove_brace_callback', $title_string);
  return $output;
}