Site Building

Rules Bonus Pack: Views and Ctools Integration for Drupal 7

Check your version

This tutorial covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources

Rules guide (Drupal.org)

Sprout Video

This screencast shows some functionality included in Rules Bonus Pack, as an example of how to make Rules integrate with other modules on your site. In particular it shows some Views and CTools/Page manager integration.

  • Condition: Check the number of results from a view.
  • Action: Load the sum of a Views column as a number. (Currently only D6!)
  • Action: Load the first result in a view into Rules.
  • Action: Clone a full node object.
  • Action: Convert a number into a date
  • Event: Trigger a rule when a custom page is rendered.
  • Special: Allow Rules condition components to be used as CTools access plugins.

Additional resources

Rules guide (Drupal.org)