You are here

function panopoly_widgets_update_7015 in Panopoly Widgets 7

Unset the default image for the image widget.

File

./panopoly_widgets.install, line 364
An installation file for Panopoly Widgets

Code

function panopoly_widgets_update_7015() {
  if ($image_field = field_info_field('field_basic_image_image')) {
    $image_field['settings']['default_image'] = 0;
    field_update_field($image_field);
    field_info_cache_clear();
  }
}