Ken J
Ken J

Reputation: 4582

Drupal 7 Chain Batch Processes

I have a series of functions that pass data to each other. I want to run these in sequence in batch so that each result would pass and array to the next function.

For example:

I'm not explaining as well as I could but I'm unfamiliar with this process. Let me know if there is any additional information that you might need. Thanks!

Upvotes: 0

Views: 450

Answers (1)

Dave
Dave

Reputation: 385

Have the functions store results in $context['sandbox'] for the next function to process. All batch functions in drupal should take a context parameter by reference as the last argument. Note that this data should be session variable safe (no objects)

Upvotes: 1

Related Questions