How to display node/add/sometype form on another page?

后端 未结 9 1053
故里飘歌
故里飘歌 2020-12-07 22:41

The whole problem is following:

Lets say we have Items, Items can have Bids, Items can have Questions and Question can have Answer.

When an Item is displayed

9条回答
  •  -上瘾入骨i
    2020-12-07 23:24

    In Drupal 7 the blank node needs to be created as an object (not an array).

      $node->uid = $user->uid;
      $node->name = (isset($user->name) ? $user->name : '');
      $node->type = $node_type;
      $node->language = '';
    

提交回复
热议问题