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

AttachmentSize
foaf_control.zip1.44 KB

#1

Nicolas92 - November 3, 2009 - 07:37
Priority:normal» critical

#2

Nicolas92 - November 4, 2009 - 13:01
Title:Creation of a module» Control access Friends of a friend to one specific content type

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

AttachmentSize
foaf_control.zip 2.15 KB
 
 

Drupal is a registered trademark of Dries Buytaert.