Skip to content

Instantly share code, notes, and snippets.

@investic
Created August 19, 2010 16:21
Show Gist options
  • Save investic/538267 to your computer and use it in GitHub Desktop.
Save investic/538267 to your computer and use it in GitHub Desktop.
invocar a un node form desde un nodo, "guarrismo" pero donde manda patron no manda marinero :)
<?php
//tiene mas peligro que una escopeta de feria pero yo que se por guardarlo todo como las urracas
global $user;
$type = 'garden';
$node = array('uid' => $user->uid, 'name' => $user->name,
'type' => $type);
module_load_include('inc', 'node', 'node.pages');
$form = drupal_get_form($type .'_node_form', $node);
print_r($form);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment