function media_field_formatter_settings_form in D7 Media 7.3
Same name and namespace in other branches
- 7.4 includes/media.fields.inc \media_field_formatter_settings_form()
- 7 includes/media.fields.inc \media_field_formatter_settings_form()
- 7.2 includes/media.fields.inc \media_field_formatter_settings_form()
Implements hook_field_formatter_settings_form().
Legacy support for the "Large filetype icon" file field formatter.
See also
File
- includes/
media.fields.inc, line 659 - Provide media selector widget and media field formatters to the fields API.
Code
function media_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$image_styles = image_style_options(FALSE, PASS_THROUGH);
$element['image_style'] = array(
'#title' => t('Image style'),
'#type' => 'select',
'#default_value' => $settings['image_style'],
'#empty_option' => t('None (original image)'),
'#options' => $image_styles,
);
return $element;
}