I am having trouble.
I used a rule set
I create a default group node when a new user is created
I then create a default project in the default group for the new user
I then try to assign the default project to the default group
I get lots of errors. I tracked it down to neither default_group nor default_project nodes have $nid defined.
How do I know? I used dsm($node_add_default_group) and dsm($node_add_default_project)
neither has $nid defined.
I have a feeling that neither node is actually saved until after the rule is executed.
When I look in my database there is no reference to either.
Can someone confirm if this is the way node creation in rules works?
If so, then how do I set up rules to do what I want?
Thanks for any insight that you might be able to give.
Comments
Comment #1
socialnicheguru commentedBut if I do have them in the same rule I am able to access group and project variables. If they are in separate rules will I be able to do that?
$node_added_project content Default project Yes
$node_added_default_group content Default group for new user Yes
$user user User No
Comment #2
winarcht commentedperhaps this reply is too late for you..
but this could be the answer of your question:
http://drupal.org/node/523104
Comment #3
tr commented#2 seems to answer this adequately. No follow up from the original poster, and D6 is now unsupported.
Comment #4
tr commented