You are here

function globallink_settings_menus_batch_finished in GlobalLink Connect for Drupal 7.7

Menu batch process finish.

1 string reference to 'globallink_settings_menus_batch_finished'
prepare_menus_button_submit in ./globallink_settings.inc
Menu batch sets .

File

./globallink_settings.inc, line 780

Code

function globallink_settings_menus_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('Updated all menu links to use the site\'s source locale and Menus to use Translate and Localize option 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');
  }
}