function _magnific_popup_gallery_options in Magnific Popup 7
Utility function returning list of gallery options.
Return value
array An associative array of option names (keys) and labels (values).
3 calls to _magnific_popup_gallery_options()
- magnific_popup_field_formatter_info in includes/
magnific_popup.formatters.inc - Implements hook_field_formatter_info().
- magnific_popup_field_formatter_settings_form in includes/
magnific_popup.formatters.inc - Implements hook_field_formatter_settings_form().
- magnific_popup_field_formatter_settings_summary in includes/
magnific_popup.formatters.inc - Implements hook_field_formatter_settings_summary().
File
- includes/
magnific_popup.formatters.inc, line 325 - Formatters for Magnific Popup.
Code
function _magnific_popup_gallery_options() {
return array(
'all_items' => t('Gallery: All Items Displayed'),
'first_item' => t('Gallery: First Item Displayed'),
'random_item' => t('Gallery: Random Item Displayed'),
'no_gallery' => t('No Gallery: Display Each Item Separately'),
);
}