function _notifications_scheduler_batch_send_finished in Notifications 7
Batch send finished
1 string reference to '_notifications_scheduler_batch_send_finished'
- _notifications_scheduler_create_batch in notifications_scheduler/
notifications_scheduler.admin.inc - Send to a list of subscriptions @todo Create batch
File
- notifications_scheduler/
notifications_scheduler.admin.inc, line 227
Code
function _notifications_scheduler_batch_send_finished($success, $results) {
$event = $results['event'];
$event
->done();
$total = count($results['processed']);
$sent = count($results['sent']);
$skip = count($results['skip']);
$success = count(array_filter($results['sent']));
drupal_set_message(t('Sent notifications to @count subscriptions: @success success, @errors errors, @skip skipped.', array(
'@count' => $total,
'@success' => $success,
'@errors' => $sent - $success,
'@skip' => $skip,
)));
}