You are here

function emfield_content_migrate_instance_alter in Embedded Media Field 7

Implements hook_content_migrate_instance_alter().

File

./emfield.module, line 129

Code

function emfield_content_migrate_instance_alter(&$instance_value, &$field_value) {
  if (in_array($instance_value['widget']['module'], array(
    'emfield',
    'emimage',
    'emaudio',
    'emvideo',
  ))) {
    $instance_value['widget']['module'] = 'media';
    $instance_value['widget']['type'] = 'media_generic';
    $instance_value['widget_type'] = 'media_generic';

    // TODO: need to convert settings etc to the D7 version.
  }
}