Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how make a visibility rule based on UR status I've made a function to get the status between the visitor and the visited profiles

I ask if the module provide it or could i make it appear in visibility rules for panels module if it provide any hooks for that

share|improve this question
Which version of the module are you using Drupal 6 or 7? – Mark Ferree Feb 19 '13 at 18:00
I'm using drupal 7 – Mohammed Gomma Feb 20 '13 at 8:44

From: http://drupal.org/node/1185210

User Relationships provides individual panel pane visibility checks based on relationship status.

In order to use this functionality:

Make sure that the User context has been enabled for the current variant (most likely current user)

Add a new visibility rule for the pane you would like to control

Select 'User Relationship' and configure for your use case.

That being said, I wrote those instructions for Drupal 6 while porting this feature to 7 and there may be bugs with the 7.x implementation. If you find anything make sure to post what you find on the issue queue.

If you want to customize your implementation further that code would be a good starting point, and please post any additional visibility rules back to the queue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.