Drupal 7 filter field current user -


I have created a custom event content type in Drupal 7, which contains the user area of ​​the teacher and student. I would like to create a scene in which the content is displayed only for users who are either teachers or students in that material - a custom calendar.

So far, I have tried to create a filter Content: Teacher (Field_Tekers) , Users: uid and Users I know that this is a syntax problem, but I need currently logged in user value

To obtain currently logged in user UID, follow this code snippet.

  Global $ user; $ Uid = $ user- & gt; UID;   

Hope this works ... Muhammad

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -