function biblio_remove_brace_callback in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 biblio.module \biblio_remove_brace_callback()
- 6 biblio.module \biblio_remove_brace_callback()
- 7 biblio.module \biblio_remove_brace_callback()
Callback from preg_replace_callback
Parameters
array $match:
Return value
array
1 string reference to 'biblio_remove_brace_callback'
- biblio_remove_brace in ./biblio.module 
- Removes brace from a string
File
- ./biblio.module, line 1004 
Code
function biblio_remove_brace_callback($match) {
  if (isset($match[1])) {
    $braceless = str_replace('{', '', $match[1]);
    $braceless = str_replace('}', '', $braceless);
    return $braceless;
  }
  return $match[0];
}