You are here

function thunder_media_update_8007 in Thunder 8.2

Make instagrams responsive.

File

modules/thunder_media/thunder_media.install, line 325
Contains.

Code

function thunder_media_update_8007() {

  // List of configurations that should be checked for existence.
  $expectedConfig['content']['field_url']['settings']['width'] = 480;
  $expectedConfig['content']['field_url']['settings']['height'] = 640;

  // New configuration that should be applied.
  $newConfig['content']['field_url']['settings']['width'] = NULL;
  $newConfig['content']['field_url']['settings']['height'] = NULL;
  _thunder_media_update_config('core.entity_view_display.media.instagram.default', $newConfig, $expectedConfig);
}