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.
精彩评论