You are here

function commons_rebuild_node_access in Drupal Commons 7.3

This function rebuild node access.

File

./commons.install, line 463
Install, update and uninstall functions for the Commons install profile.

Code

function commons_rebuild_node_access() {

  // Copied from node_access_rebuild() which sets its own batch while we need to
  // return a batch which will be automatically run by the installer.
  $batch = array(
    'title' => t('Rebuilding content access permissions'),
    'operations' => array(
      array(
        '_node_access_rebuild_batch_operation',
        array(),
      ),
    ),
    'finished' => '_node_access_rebuild_batch_finished',
  );
  return $batch;
}