function content_migrate_get_instance_values in Content Construction Kit (CCK) 7.3
Create a D7-style instance array from data stored in the D6 content field tables.
Parameters
$bundle: Optionally request only instances of a specific bundle.
$field_name: Optionally request only instances of a specific field_name.
4 calls to content_migrate_get_instance_values()
- content_migrate_get_options in modules/
content_migrate/ includes/ content_migrate.admin.inc - Determine which fields can be migrated, have already been migrated, and are unable to be migrated due to missing modules.
- content_migrate_storage_type in modules/
content_migrate/ content_migrate.module - Helper function for finding the type of table used for storing the D6 field data.
- _content_migrate_batch_process_create_fields in modules/
content_migrate/ includes/ content_migrate.admin.inc - Batch operation callback to create fields.
- _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 50 - Code For D6 to D7 field data update.
Code
function content_migrate_get_instance_values($bundle = NULL, $field_name = NULL) {
module_load_include('inc', 'content_migrate', 'includes/content_migrate.values');
return _content_migrate_get_instance_values($bundle, $field_name);
}