Hi,

I want to add the node/add form of a custom content type to a block, that is then displayed on a page.
I use the following code for that:

global $user;
  $node = array(
   'uid' => $user->uid,
   'name' => $user->name,
   'type' => 'loehde_gb_entry',
  );


module_load_include('inc', 'node', 'node.pages');
$form = drupal_get_form('loehde_gb_entry_node_form',$node);
 
if ($_GET['q'] != 'node/add/loehde_gb_entry') {

print($form);

}

The form is displayed correctly and it seems to submit correctly but no new node is created.
I am using this on a multi domain site with the domain_access modul.

On a single site it worked for me but after switching to multi domain it stopped working.

Any hints what went wrong?

Thanx

Comments

WorldFallz’s picture

Maybe check the code of the formblock module?

georg_nordhausen’s picture

Thank you. I finally solved it. The problem hat to do with a image_submit button which seemed to work on a single site installation but stopped on multi domain.