You are here

function photos_filter_process in Album Photos 7.3

Same name and namespace in other branches
  1. 6.2 photos.module \photos_filter_process()

Photos filter process.

1 string reference to 'photos_filter_process'
photos_filter_info in ./photos.module
Implements hook_filter_info().

File

./photos.module, line 2587
Implementation of photos.module.

Code

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