Multi Value user reference field

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Amy_M's picture

Hi There!

Quick question for a noob... I've got a rule that is used for the following:

1) User flags a node
2) Rules triggers a user reference to be added to that node / flagging user id

This is all fine and dandy and working like a charm... However the array that I'm using is not retaining existing user references, it over-writes them because I'm using this:

return array(
0 => array('uid' => [flagging_user:uid]),
);

Just wondering if someone could help me with the correct php to append the field with a new user reference rather than simply replacing it...

Thanks!

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: