You are here

function globallink_settings_beans_batch_finished in GlobalLink Connect for Drupal 7.7

Beans process finishe.

1 string reference to 'globallink_settings_beans_batch_finished'
prepare_beans_button_submit in ./globallink_settings.inc
Beans batch sets .

File

./globallink_settings.inc, line 1407

Code

function globallink_settings_beans_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('All bean fields have been enabled for field translation.');
  }
  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');
  }
}