How to display node form in a node content

This is the code

<?php
       
global $user;//in this case select the acting user
       //load the node information with the data from the user, and the node type form that we want to show
   
$nodo = array('uid' => $user->uid, 'name' => $user->name, 'type' => 'buddy_validation');
       
//this functions load the form in the variable to be displayed
   
$output = drupal_get_form('buddy_validation_node_form', $nodo);
       print
$output;
?>

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><h2><h3><div><del><img><hr>
  • Lines and paragraphs break automatically.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
17 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.