function content_migrate_new_table in Content Construction Kit (CCK) 7.3
Helper function to find the table for a D7 field array.
Parameters
$field:
2 calls to content_migrate_new_table()
- content_migrate_rollback in modules/
content_migrate/ includes/ content_migrate.admin.inc - Helper function to perform rollback.
- _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 110 - Code For D6 to D7 field data update.
Code
function content_migrate_new_table($field) {
if (empty($field['storage']['details'])) {
return 'field_data_' . $field['field_name'];
}
$data = $field['storage']['details']['sql'][FIELD_LOAD_CURRENT];
return key($data);
}