Community & Support

Custom node add formular in block with multi domains

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:

<?php
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

_

Maybe check the code of the formblock module?

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Thank you. I finally solved

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.