Right now in Drupal, at the end of each article, there are the comments which users has put on that article and also the comment form. I just want to have the comment form at the end of each article, I do not want the comments be shown at the end of each article. Does any body know how can I do it?

1 Answer 1


Implement hook_node_view() and check for $node->type == 'article' and $view_mode=='full' then unset the comments as follows


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.