Drupal 7 – Programatically update a media module file display image style

I needed to push a change to a file display’s image style through to production, and Features didn’t seem to want to take it so I needed to push it via an update hook.

Using code from file_entity_file_display_form_submit() and media_install() i came up with this, which worked:

Might be useful for someone in the future..

Leave a Reply

Your email address will not be published. Required fields are marked *