-1

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?

0

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...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.