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

CommentFileSizeAuthor
#2 foaf_control.zip2.15 KBNicolas92
foaf_control.zip1.44 KBNicolas92

Comments

Nicolas92’s picture

Priority: Normal » Critical
Nicolas92’s picture

Title: Creation of a module » Control access Friends of a friend to one specific content type
StatusFileSize
new2.15 KB

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