You are here

function globallink_settings_taxonomy_batch_finished in GlobalLink Connect for Drupal 7.7

Taxonomy batch process end.

1 string reference to 'globallink_settings_taxonomy_batch_finished'
prepare_taxonomy_button_submit in ./globallink_settings.inc
Taxonomy batch set.

File

./globallink_settings.inc, line 1308

Code

function globallink_settings_taxonomy_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('Updated all taxonomy vocabularies to use the selected multilingual mode successfully.');
    drupal_goto('admin/globallink-translations/settings');
  }
  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');
  }
}