components

Events happening in the community are now at Drupal community events on www.drupal.org.
mrsean's picture

Programatically setting Workflow state with Rules questions

Hello all,
I have a question which may be answered somewhere, but I've taken a bit of time to search and still haven't found the answer.

I am also not sure which group would be the best place to post my quandary, so I am hoping this group is it.

I have a Workflow where some states for content should be set by a user, while another state should not be settable by a user; it needs to be set when a variable on a piece of content changes to a certain value.

Read more
welly's picture

Updating entity referenced users from rules (code snippet)

Hey all,

Just wanted to share some rules I built as I've been racking my brain all afternoon on how to do this but eventually figured it out using Drupal 7 Rules 2 with a Rules Component. Might be useful to some of you, might not be but here it is anyway!

I have an Event node which contains an Entity Reference to a user. The user has a "credits" field. I needed to remove a credit from the user's account every time they attended an event. So I created a rule that uses a "Before saving content" event and a "Content is of type" condition.

Read more
Subscribe with RSS Syndicate content