Workflow-ng - How to change the value of a cck field with php
dme69 - March 12, 2008 - 16:00
Hello all,
I tried many things but i do not know how to do this.
I want to modify the content of a cck field when the status of my workflow is changing (In fact i want to put the user who changed the status).
I think it's possible to do it with the php code but i don't understand how to do it ?
Thanks for your precious help.
Dominique.

After 1 week ... I have
After 1 week ...
I have found how to do that.
It's not difficult when you know Php but in my case it was a little bit hard. Even if nobody helps me on that I put here my solution. I don't know if it is a good one but it works for me :
In custom php code for workflow-ng :
$node_added->field_nom_article = array(0 => array('value' => [user:user-name]),);
return array("node" => $node_added);
I'm trying to do the same
I'm trying to do the same thing but I'm not really sure how to interpret your snippet. I'm just trying to change a cck text field.
Can you elaborate on this a little more? Maybe repost your snippet with generic field names? I apologize if this seems remedial.
TIA,
txcrew