Skip navigation
Help

_node_access_rebuild_batch_finished

6 node.module _node_access_rebuild_batch_finished($success, $results, $operations)
7 node.module _node_access_rebuild_batch_finished($success, $results, $operations)

Post-processing for node_access_rebuild_batch.

Related topics

1 string reference to '_node_access_rebuild_batch_finished'

File

drupal/modules/node/node.module, line 3537
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();
}