I wrote a module for Drupal and I have some fields (buttons, image, text).
I want that some fields could be hidden for normal users and open for users when admin let.
This feature is implemented using "Field Permission" module. I don't know how to write PHP code in my module, so can I change permissions using "Field Permission" module?