You are here

function media_update_7009 in D7 Media 7

Same name and namespace in other branches
  1. 7.4 media.install \media_update_7009()
  2. 7.2 media.install \media_update_7009()
  3. 7.3 media.install \media_update_7009()

Changes the preview formatter for video types to a square thumbnail, like for images.

File

./media.install, line 435
Install, update and uninstall functions for the Media module.

Code

function media_update_7009() {

  // @todo media_type_configure_formatters() is a deprecated function, so remove
  //   this code entirely?
  drupal_load('module', 'media');
  drupal_load('module', 'field');
  media_type_configure_formatters('video', array(
    'media_preview' => 'styles_file_square_thumbnail',
  ));
}