Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I read http://drupal.org/node/1327812 earlier, and it pointed to the preImport() and postImport() functions. I am not sure of the etiquette, but could I rewrite that page part of "Advanced Topics" for pre and post/import and rollback functions, using the Rules code as an example?
I don't understand what you mean by "see the variables filled in" - what variables? If you mean arguments, these functions take no arguments and return no values, they operate on the current object.
Comments
Comment #1
Andrey Zakharov commentedwhat is "task".
anyway take a look into
methods to override.
Comment #2
mikeryanAlso, you can derive a "migration" step derived from MigrationBase - see wine.inc in migrate_example for examples.
Comment #3
bleedev commentedI read http://drupal.org/node/1327812 earlier, and it pointed to the preImport() and postImport() functions. I am not sure of the etiquette, but could I rewrite that page part of "Advanced Topics" for pre and post/import and rollback functions, using the Rules code as an example?
Comment #4
bleedev commentedI meant as a part of "Advanced Topics", instead of the "Cookbook" section of the documentation.
Comment #5
mikeryan"needs review" is used when you've posted a patch that needs review.
What we need here in the documentation is a page under http://drupal.org/node/1006984 for the less commonly implemented Migration methods.
Comment #6
bleedev commentedStarted... http://drupal.org/node/1343112. Hope that is a good start.
Comment #7
mikeryanTweaked it a bit, thanks!
Comment #9
mgiffordWell, there's this one page that lists them, but it's hardly a good example of a well documented function:
http://drupal.org/node/1343112
I'll add the link to the disabled rules section, but let's try to add some more to this section so it's easier to understand.
Comment #10
mikeryan@mgifford: The functions are very simple - what more would you like to see written about them?
Comment #11
mgiffordI'd like to see the variables filled in so that it's clear what goes into the functions and what comes out.
Comment #12
mikeryanI don't understand what you mean by "see the variables filled in" - what variables? If you mean arguments, these functions take no arguments and return no values, they operate on the current object.
Comment #13
mgiffordI just want an example that I see that demonstrates this.. The docs on the site don't say much at all about how to use the functions.
Comment #14
mikeryanRewritten.