I’m in the process of theming a node form. I want authenticated users to have as few fields as possible, while I as an administrator want to see all fields. How do I write a php if statement that checks if the current logged in user is an administrator?
Share
When on nodes, there is also a
$is_adminvariable available (not sure if it’s in always the case). For more infos on the user, the$userarray will hold all needed infos