0

Hello Drupal community,

I'm trying to develop a customized module that updates the database with some operations on some fields (geocoding an adress field) after an import using feeds. Any idea which hook I should use?

Thanks

2 Answers 2

0

There is a hook_feeds_after_import for this

2
  • Do you know how can i debug it ? I can't see any variable using either dpm(), kpr() or var_dump().
    – Ismail H
    Commented Jul 20, 2015 at 14:44
  • You can debug using watchdog function
    – Andrew
    Commented Jul 20, 2015 at 15:16
0

I found another way to alter the feed import. while importing, feeds uses to node functions : hook_node_save() and hook_node_presave(). Instead of using feeds' hook i used hook_node_presave() which alter the query before it is executed.

Works good for me !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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