_node_access_rebuild_batch_finished

Versions
6 – 7
_node_access_rebuild_batch_finished($success, $results, $operations)

Post-processing for node_access_rebuild_batch.

Related topics

Code

modules/node/node.module, line 2385

<?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();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.