@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'advagg_admin_rebuild_bundles_done'
advagg_admin_batch_rebuild in includes/admin.inc
Set up batch for first and last name loading.

File

includes/admin.inc, line 693

Code

function advagg_admin_rebuild_bundles_done($success, $results, $operations) {
    if ($success) {
        // Here we do something meaningful with the results.
        $message = count($results) . ' files generated.';
        $message .= theme('item_list', array(
            'items' => $results,
        ));
    }
    else {
        // An error occurred.
        // $operations contains the operations that remained unprocessed.
        $error_operation = reset($operations);
        $message = t('An error occurred while processing %error_operation with arguments: @arguments', array(
            '%error_operation' => $error_operation[0],
            '@arguments' => print_r($error_operation[1], TRUE),
        ));
    }
    drupal_set_message($message);
}