Drupal – Render the Post a Comment Form

You can render the comment form by the following piece of code.

<?php
  print drupal_get_form('comment_form', array('nid' => $nid));
?>

Where $nid is the node id.
 

Done =)

Reference: Render node comment form on Views page

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.