I have a node named let's say "group" to which I added a field called "foo".
How would I programmatically give a value to this "foo" attribute?
I would like to do this when a user is joining a group. This joining process does not involve a saving of the current node, it just add data to a custom table i made. So Hooks don't apply here.
I am guessing i would have to:
1-load the node 2- add data to my attribute 3- resave the node
I am still trying to figure out how to do that, so if anyone has experience to share that'd be much appreciated..
Thanks