Active
Project:
Privacy Per User
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 May 2013 at 07:21 UTC
Updated:
25 Apr 2016 at 06:21 UTC
Jump to comment: Most recent
Comments
Comment #1
gilgabar commentedYou should do this in a preprocess function for the template where you are displaying the fields. For each field that you want to check access for just call privacypu_check_access() to determine whether it should be displayed or not.
Comment #2
dinesh217 commentedHi gilgabar,
How do i preprocess function for the template where you are diplaying the fields. how can i do it? sorry am new to preprocessing functions.
Thanks & Regards,
Dinesh.
Comment #3
gilgabar commentedSee the Drupal theming documentation: https://www.drupal.org/node/223430. Or this may also be helpful: http://themery.com/dgd7/advanced-theming/preprocess-process/implement. Or just google "drupal preprocess".