function lightbox2_check_filefield_extension in Lightbox2 6
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_check_filefield_extension()
- 7.2 lightbox2.module \lightbox2_check_filefield_extension()
- 7 lightbox2.module \lightbox2_check_filefield_extension()
Suitability callback function for the filefield formatter.
Parameters
$file: The file object, containing filepath, mime type, etc.
$field: CCK field information.
Return value
True if file extension is supported.
1 call to lightbox2_check_filefield_extension()
- theme_lightbox2_formatter_filefield_lightframe in ./
lightbox2.formatter.inc - Theme function for the lightbox iframe filefield formatter.
1 string reference to 'lightbox2_check_filefield_extension'
- lightbox2_file_formatter_info in ./
lightbox2.module - Implementation of filefield's hook_file_formatter_info().
File
- ./
lightbox2.module, line 1212 - 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_check_filefield_extension($file, $field) {
$ext = array_pop(explode('.', $file->filename));
return lightbox2_supported_file_extension($ext);
}