function media_update_7010 in D7 Media 7
Same name and namespace in other branches
- 7.4 media.install \media_update_7010()
- 7.2 media.install \media_update_7010()
- 7.3 media.install \media_update_7010()
Changes the large formatter for video types to the large file style.
File
- ./
media.install, line 446 - Install, update and uninstall functions for the Media module.
Code
function media_update_7010() {
// @todo media_type_configure_formatters() is a deprecated function, so remove
// this code entirely?
// This formatter association was added to media_enable() at one point, but
// without a corresponding update function, so here's that update function.
drupal_load('module', 'media');
drupal_load('module', 'field');
media_type_configure_formatters('video', array(
'media_large' => 'styles_file_large',
));
}