function _oa_core_update_access_records_batch_prepare in Open Atrium Core 7.2
Set up the batch process to update node records.
Parameters
array $subgroup_nids: Nids for all subgroups of the node being updated.
1 call to _oa_core_update_access_records_batch_prepare()
- oa_core_node_update in includes/
oa_core.access.inc - Implements hook_node_update().
File
- includes/
oa_core.access.inc, line 292 - Code for Access Control functions for OpenAtrium spaces
Code
function _oa_core_update_access_records_batch_prepare($subgroup_nids) {
// Define the batch.
$batch = array(
'title' => t('Updating node access records due to a change in "Group Visibility"'),
'init_message' => t('Preparing to update records.'),
'operations' => array(
array(
'_oa_core_update_access_records_batch',
array(
$subgroup_nids,
),
),
),
'finished' => '_oa_core_update_access_records_batch_finished',
);
// Set the batch using a helper in case drush is used.
oa_core_batch_set($batch);
}