You are here

function filefield_migrate_fields_node in Migrate Extras 6

Implementation of hook_migrate_fields_node().

1 call to filefield_migrate_fields_node()
filefield_migrate_prepare_node in ./filefield.migrate.inc
Implementation of hook_migrate_prepare_node().

File

./filefield.migrate.inc, line 59
Hooks for handling FileFields in destination nodes.

Code

function filefield_migrate_fields_node($type) {
  $types = (array) content_types();
  $fields = array();
  if (isset($types[$type])) {
    $content_type = $types[$type];
    foreach ($content_type['fields'] as $field) {
      if ($field['type'] == 'filefield') {
        $fields[$field['field_name'] . '_sourcefile'] = t('FileField: @label source file path', array(
          '@label' => $field['widget']['label'],
        ));
      }
    }
  }
  return $fields;
}