フィード経由でコンテンツをインポートした後、ノード フィールドを複製しようとしている状況があります。モジュールでの課題のためにこれを行っていfeeds_tamper_string_2Id
ます。次のコードを試しましたが、うまくいきませんでした
function members_entity_presave($entity, $type)
{
if($entity->type == 'members') {
foreach ($entity->field_tags2['und'] as $tags) {
array_push($entity->field_tags_people['und'], $tags);
}
}
}
field_tags2['und']
の値を にコピーしたいfield_tag_people['und']
。