You are here

function _file_style_options in Field Slideshow 7.2

1 call to _file_style_options()
field_slideshow_field_formatter_settings_form in ./field_slideshow.module
Implements hook_field_formatter_settings_form().

File

./field_slideshow.module, line 1164
Implement a slideshow formatter for fields.

Code

function _file_style_options($field) {
  $entity_info = entity_get_info('file');
  $options = array(
    'default' => t('Default'),
  );
  foreach ($entity_info['view modes'] as $file_view_mode => $file_view_mode_info) {
    $options[$file_view_mode] = $file_view_mode_info['label'];
  }
  return $options;
}