You are here

function photos_filter_process in Album Photos 6.2

Same name and namespace in other branches
  1. 7.3 photos.module \photos_filter_process()
1 call to photos_filter_process()
photos_filter in ./photos.module

File

./photos.module, line 1613

Code

function photos_filter_process($text) {
  $text = ' ' . $text . ' ';
  $text = preg_replace_callback('/\\[photo=(.*?)\\](.*?)\\[\\/photo\\]/ms', '_photos_filter_process', $text);
  $text = substr($text, 1, -1);
  return $text;
}