The return from drupal_get_form is actually a rendering array, so you can just do this:
$f = drupal_get_form('example_module_form', $node); $f['#weight'] = 1; $node->content['data_collection_form'] = $f;
If you want to do it in another way, although the form should be a visualized βelementβ, therefore the key should not be prefixed with # :
$f = drupal_get_form('example_module_form', $node); $node->content['data_collection_form'] = array(0 => $f, '#weight' => 1);
All records in the rendering array with the key with the prefix # are considered properties, and those that are not "children" are displayed recursively.
Clive source share