_node_access_rebuild_batch_finished

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 8 _node_access_rebuild_batch_finished($success, $results, $operations)

Post-processing for node_access_rebuild_batch.

Related topics

Code

modules/node/node.module, line 3535

<?php
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();
}
?>