You are here

function _skinr_ui_mass_update_batch_finished in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr_ui.admin.inc \_skinr_ui_mass_update_batch_finished()

Batch 'finished' callback for skin configuration mass updates.

1 string reference to '_skinr_ui_mass_update_batch_finished'
skinr_ui_mass_update in skinr_ui/skinr_ui.admin.inc
Mass update skin configurations, updating all skin configurations in the $skins array with the field values in $updates.

File

skinr_ui/skinr_ui.admin.inc, line 287
Admin page callbacks for the Skinr UI module.

Code

function _skinr_ui_mass_update_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The update has been performed.'));
  }
  else {
    drupal_set_message(t('An error occurred and processing did not complete.'), 'error');
    $message = format_plural(count($results), '1 item successfully processed:', '@count items successfully processed:');
    $message .= theme('item_list', array(
      'items' => $results,
    ));
    drupal_set_message($message);
  }
}