How to hide node webform programatically?
Try implementing hook_node_view.Then you can put your condition on $node-&gt;type, access the webform with $node-&gt;webform and use $view_mode to load the current view mode.