You are here

function globallink_settings_nodes_batch_finished in GlobalLink Connect for Drupal 7.7

Nodes batch process finishe.

1 string reference to 'globallink_settings_nodes_batch_finished'
prepare_nodes_button_submit in ./globallink_settings.inc
Nodes batch sets .

File

./globallink_settings.inc, line 1038

Code

function globallink_settings_nodes_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('Updated all language neutral nodes to use the site source locale successfully.');
  }
  else {
    $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, 'error');
  }
}