You are here

function date_content_migrate_field_alter in Date 7

Same name and namespace in other branches
  1. 7.3 date.field.inc \date_content_migrate_field_alter()
  2. 7.2 date.field.inc \date_content_migrate_field_alter()

Implements hook_content_migrate_field_alter().

Use this to tweak the conversion of field settings from the D6 style to the D7 style for specific situations not handled by basic conversion, as when field types or settings are changed.

$field_value['widget_type'] is available to see what widget type was originally used.

File

./date.field.inc, line 421
Field hooks to implement a date field.

Code

function date_content_migrate_field_alter(&$field_value, $instance_value) {
  switch ($field_value['module']) {
    case 'date':

      // So far, no changes to field except those we have to make
      // later in the instance, to move some values from the
      // field to the widget.
      break;
  }
}