_node_mass_update_batch_finished

function _node_mass_update_batch_finished

_node_mass_update_batch_finished($success, $results, $operations)

Implements callback_batch_finished().

Reports the status of batch operation for node_mass_update().

Parameters

bool $success: A boolean indicating whether the batch mass update operation successfully concluded.

int $results: The number of nodes updated via the batch mode process.

array $operations: An array of function calls (not used in this function).

File

modules/node/node.admin.inc, line 384
Content administration and module settings UI.

Code

function _node_mass_update_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The update has been performed.'));
  }
  else {
    drupal_set_message(t('An error occurred and processing did not complete.'), 'error');
    $message = format_plural(count($results), '1 item successfully processed:', '@count items successfully processed:');
    $message .= theme('item_list', array('items' => $results));
    drupal_set_message($message);
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.admin.inc/function/_node_mass_update_batch_finished/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部