문제

I want to get programmatically the mapping which was set by the user on the feeds config page (/admin/structure/feeds/<name>/mapping_en). But how can I do it?

도움이 되었습니까?

해결책

I've fount a working solution:

$f = feeds_importer('your-importer-machine-name');
$m = $f->processor->getMappings(); // This returns the mapping.

It's just needed one day to find it...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 drupal.stackexchange
scroll top