You are here

function globallink_settings_blocks_batch_finished in GlobalLink Connect for Drupal 7.7

Blocks batch process finishe.

1 string reference to 'globallink_settings_blocks_batch_finished'
prepare_blocks_button_submit in ./globallink_settings.inc
Block batch sets .

File

./globallink_settings.inc, line 712

Code

function globallink_settings_blocks_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('Updated settings of all blocks to be translatable 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');
  }
}