Control access Friends of a friend to one specific content type
Nicolas92 - November 2, 2009 - 17:01
| Project: | FriendList |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | Nicolas92 |
| Status: | active |
Description
Hi,
I'm trying to develop a module (for the first time...).
I want to put a restriction on specifics content types. These specifics content types must be readable only by author of the node, friends of author and friends of a friend author.
I find friendlist_api to get a list of friends of friends, that's why I put : include_once('/sites/all/modules/friendlist/friendlist_api/friendlist_api.module');
You'll find part of my module in attachments
I need help to achieve this module please, because i'm lost
Thx
| Attachment | Size |
|---|---|
| foaf_control.zip | 1.44 KB |

#1
#2
I change a part of the module. The admin setting part seems to work.
You can choose a specific content type and it will be saved in table named "friendlist_foaf_control".
But I'd like to have help on the way to display the node of the specific content type chosen.
If you have any ideas it would be great, thx