You are here

function fft_cleanup_header_comment in Field Formatter Template 8

Same name and namespace in other branches
  1. 8.2 fft.module \fft_cleanup_header_comment()
  2. 7 fft.module \fft_cleanup_header_comment()

Clear up string.

Parameters

string $str: Input string.

Return value

string Output of clean up string.

1 call to fft_cleanup_header_comment()
fft_get_templates in ./fft.module
Get available templates.

File

./fft.module, line 69
Field formatter template.

Code

function fft_cleanup_header_comment($str) {
  return trim(preg_replace("/\\s*(?:\\*\\/|\\?>).*/", '', $str));
}