_node_access_rebuild_batch_finished($success, $results, $operations)
Implements callback_batch_finished().
Performs post-processing for node_access_rebuild().
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).
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'); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!node!node.module/function/_node_access_rebuild_batch_finished/8.1.x