1 node.module _node_access_rebuild_batch_finished($success, $results, $operations)

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

File

core/modules/node/node.module, line 3460
The core module that allows content to be submitted to the site.

Code

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