all contrib module security updates done
This commit is contained in:
@@ -1,21 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Support for processing entity reference fields in Migrate.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implement hook_migrate_api().
|
||||
* Implements hook_migrate_api().
|
||||
*/
|
||||
function entityreference_migrate_api() {
|
||||
return array(
|
||||
'api' => 2,
|
||||
'field_handlers' => array('MigrateEntityReferenceFieldHandler'),
|
||||
'field handlers' => array('MigrateEntityReferenceFieldHandler'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Extended class for handling entityreference fields.
|
||||
*/
|
||||
class MigrateEntityReferenceFieldHandler extends MigrateSimpleFieldHandler {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct(array(
|
||||
'value_key' => 'target_id',
|
||||
|
||||
Reference in New Issue
Block a user