I'm trying to use a PHP code for panel visibility in a Panels3 based on Friendlist

Posted by user366902 on Stack Overflow See other posts from Stack Overflow or by user366902
Published on 2010-06-15T05:15:21Z Indexed on 2010/06/15 5:22 UTC
Read the original article Hit count: 148

Filed under:
|

I'm trying to gain a truth value to gain panel visibility. I have a view in place in a panel to display a listing of heartbeat messages that belong to a user. The display works but I cannot figure out how to restrict access to the panel based on the user who is viewing the panel. Goal is I want the panel to only be visible to friends and some people with certain roles. The roles I can handle but I don't know enough about PHP to get it working based on friendship status. I vaguely guess it would be something like:

logged user is twoway with user being viewed based on current uid argument.

I know my example is nothing like the actual code but as I said I don't have much to go on here.

© Stack Overflow or respective owner

Related posts about drupal

Related posts about friend