Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function THEME_OR_MODULE_NAME_node_view_alter(&$build)
- {
- global $user;
- if($user->uid == 0)
- {
- if($build['#node']->nid == 1) // add node id's you want hidden here
- {
- if(isset($build['field_image']))
- {
- unset($build['field_image']);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement