Created
August 19, 2010 16:21
-
-
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 :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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