You are here

function image_process_finished in Node Gallery 6.2

2 string references to 'image_process_finished'
node_gallery_images_edit_submit in ./node_gallery.pages.inc
_node_gallery_delete in ./node_gallery.module
Implementation of hook_nodeapi(op='delete').

File

./node_gallery.module, line 464
Node gallery module file

Code

function image_process_finished($success, $results, $operations) {
  if ($success) {

    // Here we do something meaningful with the results.
    drupal_get_messages('status', TRUE);
    $results = is_string($results) ? array(
      $results,
    ) : $results;
    foreach ($results as $result) {
      drupal_set_message($result);
    }
  }
  else {

    // An error occurred.
    // $operations contains the operations that remained unprocessed.
    $error_operation = reset($operations);
    $message = 'An error occurred while processing ' . $error_operation[0] . ' with arguments :' . print_r($error_operation[0], TRUE);
    drupal_set_message($message);
  }
}