function fft_cleanup_header_comment in Field Formatter Template 7
Same name and namespace in other branches
- 8.2 fft.module \fft_cleanup_header_comment()
- 8 fft.module \fft_cleanup_header_comment()
Clear up string.
Parameters
string $str: The input string.
Return value
string Cleanup string.
1 call to fft_cleanup_header_comment()
- fft_get_templates in ./
fft.module - Get avaiables templates.
File
- ./
fft.module, line 120 - Field formatter template.
Code
function fft_cleanup_header_comment($str) {
return trim(preg_replace("/\\s*(?:\\*\\/|\\?>).*/", '', $str));
}