What are Loops in Drupal Rules?

Loops in Rules

Loops are potentially confusing, but they are a very useful feature in Drupal’s Rules module.

Essentially a loop allows you to run an action over a list, rather than just a single item.

For example, in these videos, Robert has a list of multiple people who have edited a node. He creates an action to show the names of an editor, and then repeats that action for all the editors.

In programming terms, “Conditions” in Rules are similar to “if” statements and “Loops” are “for” loops that iterate over a list or an array.

Instructor

  • Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Blog Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x