You are here

function backgroundfield_field_widget_settings_form in BackgroundField 7

Implements hook_field_widget_settings_form()

File

./backgroundfield.module, line 226

Code

function backgroundfield_field_widget_settings_form($field, $instance) {
  if (!isset($instance['widget']['settings']['preview_image_style'])) {
    $instance['widget']['settings']['preview_image_style'] = '';
  }
  if (!isset($instance['widget']['settings']['progress_indicator'])) {
    $instance['widget']['settings']['progress_indicator'] = '';
  }
  return image_field_widget_settings_form($field, $instance);
}