You are here

function globallink_settings_field_collections_batch_finished in GlobalLink Connect for Drupal 7.7

Field collections process finishe.

1 string reference to 'globallink_settings_field_collections_batch_finished'
prepare_field_collections_button_submit in ./globallink_settings.inc
Field collections batch set.

File

./globallink_settings.inc, line 1162

Code

function globallink_settings_field_collections_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('All field collections 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');
  }
}