You are here

function tzfield_content_migrate_field_alter in Time Zone Field 7

Implements hook_content_migrate_field_alter().

File

./tzfield.module, line 262
Defines a time zone field type.

Code

function tzfield_content_migrate_field_alter(&$field) {

  // Use tzfield namespace for field type.
  if ($field['type'] == 'timezone') {
    $field['type'] = 'tzfield';
    if ($field['cardinality'] == 0) {
      $field['cardinality'] = 1;
    }
  }
}