function migrate_extras_profile2_install in Migrate Extras 7.2
File
- migrate_extras_examples/
migrate_extras_profile2/ migrate_extras_profile2.install, line 3
Code
function migrate_extras_profile2_install() {
$type = entity_create('profile2_type', array(
'type' => 'migrate_extras_profile2',
'label' => t('migrate_extras_profile2'),
'weight' => 0,
'data' => array(
'registration' => FALSE,
'use_page' => TRUE,
),
));
$type
->save();
}