As noted in the comments in the Batch API example (https://api.drupal.org/api/drupal/includes!form.inc/group/batch/7), the finished callback name in the batch definition (my_finished_callback) does not match the function declaration (batch_test_finished).
see comment: https://api.drupal.org/comment/32503#comment-32503
Abbreviated beta evaluation: This is an unfrozen docs fix (only changes an example in API docs).
Comments
Comment #1
cleaver CreditAttribution: cleaver commentedPatch changes the callback in the batch definition to the actual function name:
IE: my_finished_callback -> batch_test_finished
Comment #2
cleaver CreditAttribution: cleaver commentedComment #3
jhodgdonThanks! But I think the better fix, to be more consistent with the rest of the example, would be to change the function name in the code below to my_finished_callback.
Comment #4
cleaver CreditAttribution: cleaver commentedMakes sense... the other functions start with "my_". I'm flipping it around.
Comment #7
jhodgdonThanks!
Comment #8
alexpottDocumentation is not frozen during beta. Committed 2bbeb8f and pushed to 8.0.x. Thanks!
Comment #10
David_Rothstein CreditAttribution: David_Rothstein commentedLooks like this should be backported?
Comment #11
cleaver CreditAttribution: cleaver commentedAdded patch for 7.x
Comment #12
cleaver CreditAttribution: cleaver commentedComment #13
David_Rothstein CreditAttribution: David_Rothstein commentedThanks, but isn't that replacing the wrong thing? I think we want it to replace "batch_test_finished", just like the Drupal 8 patch.
Comment #14
JacobSanfordThanks for review! Requested changes.
Comment #16
jhodgdonCommitted correct backport to D7. Thanks again everyone!