Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements hook_og_invoke_node_access_acquire_grants_alter() #14

Closed
wants to merge 14 commits into from

Conversation

shushu
Copy link
Contributor

@shushu shushu commented Nov 16, 2014

#13

WIP


$access_entities = $this->getAccessEntities();
$old_access_entities = $this->getAccessEntities('node', $node->original);
if (count($access_entities) != count($old_access_entities)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think count() isn't enough. Maybe count() is the same -- but different IDs. you can array_diff() the entity IDs instead.

Shushu Inbar added 2 commits November 17, 2014 11:00
@amitaibu
Copy link
Member

Merged, thanks.

@amitaibu amitaibu closed this Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants