开发者

created node id in the next form?

开发者 https://www.devze.com 2023-02-09 09:36 出处:网络
I have a content t开发者_JAVA百科ype which is created using CCK\'s(Establishment). I have used $form[\'#redirect\'] to redirect the user to another form that is generated from a custom module(Beers).

I have a content t开发者_JAVA百科ype which is created using CCK's(Establishment). I have used $form['#redirect'] to redirect the user to another form that is generated from a custom module(Beers). My requirement is i need to save the created Establishment node id with values of beers module. How can i do this?


I installed Rules module and in admin/rules/trigger/add i created new rule and and added rule element as IFconditionCreated (content is Content Type) DO page redirect and in page redirect i set To as node/add/bears and in the next text box i added below code.

n_id=nid; ?>

Everything worked Great.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号