function lightbox2_image_fields in Lightbox2 7
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_image_fields()
- 7.2 lightbox2.module \lightbox2_image_fields()
Helper function for possible fields to display as the caption.
2 calls to lightbox2_image_fields()
File
- ./
lightbox2.module, line 816 - 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_image_fields() {
$fields = array(
'hidden' => t('Hidden'),
'title' => t('File title'),
'filename' => t('Filename'),
);
foreach (field_info_instances("file", "image") as $field) {
$fields[$field['field_name']] = $field['label'];
}
return $fields;
}