You are here

function content_migrate_old_table in Content Construction Kit (CCK) 7.3

Helper function for finding the table name used to store the D6 field data.

Parameters

$field_value:

$instance_value:

1 call to content_migrate_old_table()
_content_migrate_batch_process_migrate_data in modules/content_migrate/includes/content_migrate.admin.inc
Batch operation callback to migrate data. Copy old table data to new field table.

File

modules/content_migrate/content_migrate.module, line 62
Code For D6 to D7 field data update.

Code

function content_migrate_old_table($field_value, $instance_value) {
  $storage = content_migrate_storage_type($field_value);
  switch ($storage) {
    case CONTENT_DB_STORAGE_PER_CONTENT_TYPE:
      $name = $instance_value['bundle'];
      return "content_type_{$name}";
    case CONTENT_DB_STORAGE_PER_FIELD:
      $name = $field_value['field_name'];
      return "content_{$name}";
  }
}