Skip to content
Snippets Groups Projects
Commit ab9103bc authored by Angie Byron's avatar Angie Byron
Browse files

Issue #604902 by rschwab, drewish: Add documentation about Batch API success parameter.

parent 01ac764a
No related merge requests found
......@@ -4074,6 +4074,8 @@ function _form_set_class(&$element, $class = array()) {
* Sample 'finished' callback:
* @code
* function batch_test_finished($success, $results, $operations) {
* // The 'success' parameter means no fatal PHP errors were detected. All
* // other error management should be handled using 'results'.
* if ($success) {
* $message = format_plural(count($results), 'One post processed.', '@count posts processed.');
* }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment