How can I insert a comment form into my view? In Drupal 7, I'm building a module that has a view page that lists all nodes of a certain type. I want users to be able to comment on each node in the view from this view page.

I tried using hook_node_view but it only seems to apply to the full node page view. What kind of hook do I need to get the comment form of a node in a view?
What I know? That you can use the view.tpl.php file and add:

&lt;?php
print drupal_render(drupal_get_form("comment_node_**content_type_machine_name**_form", (object) array('nid' =&gt; **$node-&gt;nid**)));
?&gt;


Change the bold according to your node object and the content type machine readable name. 

I think this link can help you too. and I suggest to check hook_views_pre_render Here which can do it but I didn't try it before.