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. Hope this works ... Muhammad
Global $ user; $ Uid = $ user- & gt; UID;
Comments
Post a Comment