You are here

function scald_image_update_7000 in Scald: Media Management made easy 7

Hide the Image field because the image is rendered once in the Atom core.

This make Scald Image consistent with other atom types.

File

modules/providers/scald_image/scald_image.install, line 44
Scald Images Installation

Code

function scald_image_update_7000() {
  $instance = field_info_instance('scald_atom', 'scald_thumbnail', 'image');
  foreach ($instance['display'] as $view_mode => $settings) {
    $instance['display'][$view_mode]['type'] = 'hidden';
  }
  field_update_instance($instance);
}