function og_access_entity_update in Organic groups 7.2
Implements hook_entity_update().
In case the group entity was marked with group privacy change, create batch operation to update group content.
File
- og_access/
og_access.module, line 328 - Enable access control for private and public groups and group content.
Code
function og_access_entity_update($entity, $entity_type) {
if (!og_access_check_node_access_grants_is_needed($entity, $entity_type)) {
return;
}
// Handle group privacy change.
og_access_handle_group_privacy_change($entity_type, $entity);
}