Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need books that are restricted to a group. If I create content of type a only members of that group can see or edit it. But if book is involved members of other groups can now add content to books in a different group and they should not be able to see that content.
I looked at book access books made simple but neither provide the necessary tools.
Comments
Comment #1
nicxvan CreditAttribution: nicxvan commentedI'm willing to do most of the legwork, but I would need some pointers. I think it may be best to have it as a helper module in og since book is core. I would like some similar function to the obsolete and unsupported og_book with some key changes. Allowing multiple books per group.
From looking at some code. I think the relevant bit in og_module that needs to be modified is here:
The relevant hooks from book seem to be:
https://api.drupal.org/api/drupal/modules%21book%21book.module/function/...
https://api.drupal.org/api/drupal/modules%21book%21book.module/function/...
https://api.drupal.org/api/drupal/modules%21book%21book.module/function/...
I don't know quite what to do with this so if someone can point me in the right direction I'll be happy to try to get this in place.