function flickr_filter in Flickr 7
Same name and namespace in other branches
- 5 filter/flickr_filter.module \flickr_filter()
- 6 filter/flickr_filter.module \flickr_filter()
Processes the flickr filter.
3 string references to 'flickr_filter'
- flickr_admin_settings in ./
flickr.admin.inc - Implements hook_settings().
- flickr_admin_settings_submit in ./
flickr.admin.inc - Submit form data.
- flickr_filter_info in filter/
flickr_filter.module - Implements hook_filter_info().
File
- filter/
flickr_filter.module, line 168 - The Flickr filter module.
Code
function flickr_filter($text, $filter) {
$text = preg_replace_callback('/\\[flickr-photo:(.+?)\\]/', 'flickr_filter_callback_photo', $text);
$text = preg_replace_callback('/\\[flickr-photoset:(.+?)\\]/', 'flickr_filter_callback_album', $text);
$text = preg_replace_callback('/\\[flickr-group:(.+?)\\]/', 'flickr_filter_callback_group', $text);
$text = preg_replace_callback('/\\[flickr-gallery:(.+?)\\]/', 'flickr_filter_callback_gallery', $text);
$text = preg_replace_callback('/\\[flickr-user:(.+?)\\]/', 'flickr_filter_callback_album', $text);
$text = preg_replace_callback('/\\[flickr-favorites:(.+?)\\]/', 'flickr_filter_callback_favorites', $text);
return $text;
}