Content Types and drupal_get_form I've created a content type for authenticated users to use, to create and edit &amp; delete their own of. I have set up the permissions and can get access as a authenticated user to the forms directly via node/add/story &amp; node/19401/edit.

Now i want to use the form on another page, to be used in a block within a panel.

$form = drupal_get_form('story_node_form');
return drupal_render($form);


using drupal_get_form doesn't seem to work correctly is there another function I should be using to pull in the form?

*UPDATE

I managed to get it to work using node_add

include_once(drupal_get_path('module','node') . '/node.pages.inc' );
return drupal_render(node_add('story'));


is there any security issues with this method?
This is no secure issues with this.  


Drupal 6 return node_add('story')
Drupal 7 return drupal_render(node_add('story'))



  Returns a node submission form.


for more information checkout the node_add() function