You are here

function media_update_7017 in D7 Media 7

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

Move file display configurations from the 'file_displays' variable to the {file_display} table.

File

./media.install, line 663
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')) {
    module_load_include('install', 'file_entity', 'file_entity');
    file_entity_update_7001();
  }
}