You are here

function media_import_batch_import_complete in D7 Media 7

BatchAPI complete callback for media import.

1 string reference to 'media_import_batch_import_complete'
media_import_submit in includes/media.admin.inc
Submit handler for media_import().

File

includes/media.admin.inc, line 554
This file contains the admin functions for the Media module.

Code

function media_import_batch_import_complete($success, $results, $operations) {
  if ($results['errors']) {
    drupal_set_message(theme('item_list', array(
      'items' => $results['errors'],
    )), 'error');
  }
  if ($results['success']) {
    drupal_set_message(theme('item_list', array(
      'items' => $results['success'],
    )));
  }
}