function _lightbox2_process_disable_filter in Lightbox2 7.2
Same name and namespace in other branches
- 8 lightbox2.module \_lightbox2_process_disable_filter()
- 7 lightbox2.module \_lightbox2_process_disable_filter()
Process callback for Disable Lightbox iframe filter.
1 string reference to '_lightbox2_process_disable_filter'
- lightbox2_filter_info in ./
lightbox2.module - Implements hook_filter_info().
File
- ./
lightbox2.module, line 452 - Enables the use of lightbox2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.
Code
function _lightbox2_process_disable_filter($text, $format) {
$text = preg_replace('/<a([^>]*?)(rel=[\'"]*lightframe[\'"]*)([^>]*?)>/i', '<a\\1\\3>', $text);
return $text;
}