function supersized_field_formatter_settings_form in Supersized 7
Same name and namespace in other branches
- 8 supersized.field.inc \supersized_field_formatter_settings_form()
Implements hook_field_formatter_settings_form().
File
- ./
supersized.field.inc, line 543 - Implement an image field, based on the file module's file field.
Code
function supersized_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);
$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;
}