You are here

function _node_access_rebuild_batch_finished in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/node/node.module \_node_access_rebuild_batch_finished()
  2. 6 modules/node/node.module \_node_access_rebuild_batch_finished()
  3. 9 core/modules/node/node.module \_node_access_rebuild_batch_finished()
  4. 10 core/modules/node/node.module \_node_access_rebuild_batch_finished()

Implements callback_batch_finished().

Performs post-processing for node_access_rebuild().

Parameters

bool $success: A boolean indicating whether the re-build process has completed.

array $results: An array of results information.

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

Related topics

1 string reference to '_node_access_rebuild_batch_finished'
node_access_rebuild in modules/node/node.module
Rebuilds the node access database.

File

modules/node/node.module, line 3728
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function _node_access_rebuild_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The content access permissions have been rebuilt.'));
    node_access_needs_rebuild(FALSE);
  }
  else {
    drupal_set_message(t('The content access permissions have not been properly rebuilt.'), 'error');
  }
  cache_clear_all();
}