function lightbox2_file_formatter_info in Lightbox2 6
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_file_formatter_info()
- 7.2 lightbox2.module \lightbox2_file_formatter_info()
- 7 lightbox2.module \lightbox2_file_formatter_info()
Implementation of filefield's hook_file_formatter_info().
File
- ./
lightbox2.module, line 1187 - 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_file_formatter_info() {
return array(
'lightbox2_iframe' => array(
'suitability callback' => 'lightbox2_check_filefield_extension',
'title' => t('Lightbox2 iframe'),
'description' => t('Displays all kinds of files in a popup lightbox in an iframe.'),
),
'lightbox2_image' => array(
'suitability callback' => 'lightbox2_check_filefield_image_extension',
'title' => t('Lightbox2 image'),
'description' => t('Displays image files in a popup lightbox.'),
),
);
}