You are here

function kaltura_batch_import_finished in Kaltura 7.3

Batch finish callback.

Parameters

bool $success: Means no fatal PHP errors were detected. All other error management should be handled using $results.

array $results: Array of results returned from operations callbacks.

array $operations:

1 string reference to 'kaltura_batch_import_finished'
kaltura_import_submit in includes/kaltura.admin.inc
Form submission handler for kaltura_import().

File

includes/kaltura.admin.inc, line 797
Contains functions for administration use of the kaltura core module.

Code

function kaltura_batch_import_finished($success, $results, $operations) {
  if ($success) {
    if (!empty($results['new last updated'])) {
      variable_set('kaltura_last_imported', $results['new last updated']);
    }
    drupal_set_message(t('Import completed.'));
  }
  else {
    drupal_set_message(t('Finished with an error.'));
  }
}