Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/485019607506624512
added 264 characters in body
Source Link
Tanvir Ahmad
  • 526
  • 1
  • 5
  • 17

I am using migration to import nodes from a csv. I want to change the file name when import is done. How can I call a custom function when Import/Migration is done from a specific file to change its name?

I knwo about the postimpot but I am looping thorugh directories to import data from each csv file in each directory. So postimport is called every time a file has been imported. But in posImport I cant use argument to change the last imported file name only.

I am using migration to import nodes from a csv. I want to change the file name when import is done. How can I call a custom function when Import/Migration is done from a specific file to change its name?

I am using migration to import nodes from a csv. I want to change the file name when import is done. How can I call a custom function when Import/Migration is done from a specific file to change its name?

I knwo about the postimpot but I am looping thorugh directories to import data from each csv file in each directory. So postimport is called every time a file has been imported. But in posImport I cant use argument to change the last imported file name only.

Source Link
Tanvir Ahmad
  • 526
  • 1
  • 5
  • 17

How to call a custom function when Migration(Import) is done?

I am using migration to import nodes from a csv. I want to change the file name when import is done. How can I call a custom function when Import/Migration is done from a specific file to change its name?