Rules integration

Flag module provides integration with the Rules module. For this the "Actions" submodule is NOT needed. It only provides integration with core actions. The integration in 7.x-3.x is fully functional.

Rules is a more powerful replacement for Drupal's built-in Actions (and Trigger). It lets you "script" your site, using an easy administrative GUI, in response to various events. Rules, in short, is an alternative to that glue code you use to write in little custom modules.

Flag module provides the following Rules actions:

  • Flagging and unflagging items (on behalf of any user).
  • Trimming flags (restricts the number of items in a flag list, similar to NodeQueue).
  • Fetching the overall flag count (fetches the total count for a flag).
  • Fetching the entity flag count (fetches the total count for a flag for a particular entity).
  • Fetching the user flag count (fetches the total count for a flag by a user).

Flag module provides the following Rules conditions:

  • Finding out if an item is flagged over a certain number of times.
  • Finding out if an item is flagged by a certain user.

Flag module provides the following Rules events:

  • On flagging and unflagging of items.

Fixing a rule that "breaks" after renaming a flag

The Flag module defines two events for every flag you create (For example, for the bookmarks flag there are the two events "A node has been

Tutorial: Last visited content block

In this tutorial we will learn how to create a block that shows each user the last content (i.e. nodes) she has visited. For this we will

Guide maintainers

mooffie's picture