Getting $content of content type in template.php I am trying to get form that is used in content type template in template.php.
I am creating node collections with EntityFieldQuery, and I am pulling field values of content type without problem.

But i need to access form, and add it to html stream that i create in template.php

In content type i can do

print render($content['add_to_cart']);


To get form out.

But now in template.php i need that form for specific nodes (im pulling them with EntityFieldQuery) as html, so i can include it to rest of the stream and send the  data in variable, and simply output it where i need it (content type page.)

Thanks!
I'm not sure, if this is what you are looking. But if you want to embed a node-add form you could use the following code.

&lt;?php
$node = new stdClass();
$node-&gt;type = 'machine_name_of_your_content_type';
module_load_include('inc', 'node', 'node.pages');
$output = drupal_get_form('machine_name_of_your_content_type_node_form', $node);
print $output;
?&gt;