function media_update_7017 in D7 Media 7.3
Same name and namespace in other branches
- 7.4 media.install \media_update_7017()
- 7 media.install \media_update_7017()
- 7.2 media.install \media_update_7017()
Move file display configuration.
Move file display configurations from the 'file_displays' variable to the {file_display} table.
File
- ./
media.install, line 489 - Install, update and uninstall functions for the Media module.
Code
function media_update_7017() {
// If the {file_display} table doesn't exist, then the File Entity module's
// update functions will automatically take care of migrating the
// configurations. However, if file_entity_update_7001() has already run
// prior to media_update_7016(), run it again in order to capture those
// configurations too.
if (db_table_exists('file_display') && function_exists('file_entity_update_7001')) {
module_load_include('install', 'file_entity', 'file_entity');
file_entity_update_7001();
}
}