function thunder_media_update_8004 in Thunder 8.2
Enable auto_open for gallery browser.
File
- modules/
thunder_media/ thunder_media.install, line 248 - Contains.
Code
function thunder_media_update_8004() {
// List of configurations that should be checked for existence. We are trying
// to ensure, that active display settings are provided by our configuration.
$expectedConfig['display_configuration']['width'] = '1070';
$expectedConfig['display_configuration']['height'] = '';
$expectedConfig['display_configuration']['link_text'] = 'Select entities';
// This option is introduced with new version of entity browser module, so
// it didn't exist before, because of that it's not possible to check
// existing configuration value for this property.
$configsToUpdate['display_configuration']['auto_open'] = TRUE;
_thunder_media_update_entity_browser_config('gallery_browser', $configsToUpdate, $expectedConfig);
}