function biblio_remove_brace_callback in Bibliography Module 6.2
Same name and namespace in other branches
- 6 biblio.module \biblio_remove_brace_callback()
- 7 biblio.module \biblio_remove_brace_callback()
- 7.2 biblio.module \biblio_remove_brace_callback()
Assists in the removal of curly braces with preg_replace_callback().
Parameters
array $match:
Return value
string
1 string reference to 'biblio_remove_brace_callback'
- biblio_remove_brace in ./
biblio.module - Removes curly braces from a string.
File
- ./
biblio.module, line 1232 - Main file for Drupal module biblio.
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];
}