function lightbox2_filter_info in Lightbox2 7
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_filter_info()
- 7.2 lightbox2.module \lightbox2_filter_info()
Implements hook_filter_info().
File
- ./
lightbox2.module, line 460 - 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_filter_info() {
$filters = array();
$filters['lightbox2_filter'] = array(
'title' => t('Lightbox filter'),
'description' => t('Image links with \'rel="lightbox"\' in the <a> tag will appear in a Lightbox when clicked on.'),
);
$filters['lightbox2_gd_filter'] = array(
'title' => t('Lightbox GD filter'),
'description' => t('Turns g2_filter links into Lightbox2 appropriate links'),
'process callback' => '_lightbox2_process_filter',
);
$filters['lightbox_slideshow_filter'] = array(
'title' => t('Lightbox slideshow filter'),
'description' => t('Image links with \'rel="lightshow"\' in the <a> tag will appear in a Lightbox slideshow when clicked on.'),
);
$filters['lightbox_iframe_filter'] = array(
'title' => t('Lightbox iframe filter'),
'description' => t('Links to HTML content with \'rel="lightframe"\' in the <a> tag will appear in a Lightbox when clicked on.'),
);
$filters['lightbox_video_filter'] = array(
'title' => t('Lightbox video filter'),
'description' => t('Links to video content with \'rel="lightvideo"\' in the <a> tag will appear in a Lightbox when clicked on.'),
);
$filters['lightbox_modal_filter'] = array(
'title' => t('Lightbox modal filter'),
'description' => t('Links to inline or modal content with \'rel="lightmodal"\' in the <a> tag will appear in a Lightbox when clicked on.'),
);
$filters['lightbox_disable_iframe_filter'] = array(
'title' => t('Disable Lightbox iframe filter'),
'description' => t('It\'s possible to show webpage content in the lightbox, using iframes. In this case the "rel" attribute should be set to "lightframe". However, users can do this without any filters to be enabled. To prevent users from adding iframes to the site in this manner, then please enable this option.'),
'process callback' => '_lightbox2_process_disable_filter',
);
return $filters;
}