function lightbox2_file_formatter_info in Lightbox2 8
Same name and namespace in other branches
- 6 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 1485 - 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',
'label' => 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',
'label' => t('Lightbox2 image'),
'description' => t('Displays image files in a popup lightbox.'),
),
);
}