function accessibility_tests_list_done

cis7 accessibility.admin.inc accessibility_tests_list_done($success, $results, $operations)
cle7 accessibility.admin.inc accessibility_tests_list_done($success, $results, $operations)
elmsmedia7 accessibility.admin.inc accessibility_tests_list_done($success, $results, $operations)
icor7 accessibility.admin.inc accessibility_tests_list_done($success, $results, $operations)
meedjum_blog7 accessibility.admin.inc accessibility_tests_list_done($success, $results, $operations)
mooc7 accessibility.admin.inc accessibility_tests_list_done($success, $results, $operations)

Batch import finished callback.

1 string reference to 'accessibility_tests_list_done'
accessibility_tests_list_submit in sites/all/modules/ulmus/accessibility/accessibility.admin.inc
Form submit callback for importing tests.

File

sites/all/modules/ulmus/accessibility/accessibility.admin.inc, line 159

Code

function accessibility_tests_list_done($success, $results, $operations) {
  if ($success) {
    // Here we do something meaningful with the results.
    $message = count($results) . ' imported.';
    $message .= theme('item_list', $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);
}