Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I start a batch job in the modalframe I see that the batch page is not rendered thru the modalframe template. I use the standart garland theme.
Next question: How can I close the modalframe automatically after the batch process is finished?
I didnt found any solutions for this problems yet.
Comment | File | Size | Author |
---|---|---|---|
#3 | modalframe_1269022_batchjob.patch | 2.18 KB | hefox |
Comments
Comment #1
broncomania CreditAttribution: broncomania commentedHm, could it be that I am the only one who tried it? I can't believe :-) but any suggestion is still welcome to find a solution for I think simple task or is it so complicated?
Comment #2
attiks CreditAttribution: attiks commentedyou're not the only one, i just noticed the same, but no idea why and no idea on how to solve it :/
Comment #3
hefox CreditAttribution: hefox commentedOkay this is a combination patch of the two issues, closing a modalframe and batch page.
It adds a menu entry, modalframe-batch, that can be used instead of 'batch'
Use that after setting the batch, but before the batch is processed.
It provides another menu callback, modalframe-close, that triggers the modalframe close.
It tries to autodetect that case, but otherwise
should do it.
It's ugly as fuck. I hate the patch. but it seems to work and couldn't find an elegant way to get it working. *sigh*
Comment #4
hefox CreditAttribution: hefox commentedComment #5
dsnopekWow, integrating with batch jobs looks pretty insane. :-/
The situation might have gotten better in Drupal 7 with hook_batch_alter():
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
I can't commit anything to the D6 version without also committing to the D7 version, so let's try and make a (hopefully) cleaner version for D7 first.
Comment #6
Yuri CreditAttribution: Yuri commentedAnyone found a solution for this?