开发者

created node id in the next form?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜