You are here

function biblio_remove_brace in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_remove_brace()
  2. 6 biblio.module \biblio_remove_brace()
  3. 7.2 biblio.module \biblio_remove_brace()
7 calls to biblio_remove_brace()
biblio_handler_citation::render in views/biblio_handler_citation.inc
Render the field.
biblio_page_content in includes/biblio.pages.inc
biblio_ris_biblio_export in modules/RIS/biblio_ris.module
biblio_rtf_biblio_export in modules/rtf/biblio_rtf.module
biblio_tagged_biblio_export in modules/endnote/biblio_tagged.module

... See full list

File

./biblio.module, line 1131
Bibliography Module for Drupal.

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;
}