You are here

function emfield_content_migrate_field_alter in Embedded Media Field 7

Implements hook_content_migrate_field_alter().

File

./emfield.module, line 118

Code

function emfield_content_migrate_field_alter(&$field_value, &$instance_value) {
  if (in_array($field_value['module'], array(
    'emfield',
    'emimage',
    'emaudio',
    'emvideo',
  ))) {
    $field_value['module'] = 'file';
    $field_value['type'] = 'file';

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