You are here

function migrate_example_beer_image in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/beer.install.inc \migrate_example_beer_image()
1 call to migrate_example_beer_image()
migrate_example_beer_install in migrate_example/beer.install.inc

File

migrate_example/beer.install.inc, line 367
Set up for the beer (basic) example.

Code

function migrate_example_beer_image() {
  $field = array(
    'field_name' => 'field_migrate_example_image',
    'type' => 'filefield',
    'widget_type' => 'imagefield_widget',
    'type_name' => 'migrate_example_beer',
    'label' => t('Image'),
    'multiple' => 1,
  );
  content_field_instance_create($field);
}