You are previewing Drupal Rules How-to.
O'Reilly logo
Drupal Rules How-to

Book Description

Discover the power of the Rules framework to turn your Drupal 7 installation into an action based interactive application

  • Leverage the power of Rules and Views Bulk Operations

  • Re-use configurations using Components

  • Create your own Events, Conditions and Actions.

In Detail

Rules is what every Drupal site builder and developer has to use when creating event – action-based applications. The framework provides a highly flexible way to create sophisticated, condition-based functions any Drupal based system into an interactive application. Rules makes Drupal rule the CMS world.

"Drupal Rules How-to" is a practical, hands-on guide that provides you with a number of clear step-by-step exercises, which will help you take advantage of the real power of the Rules framework, and understand how to use it on a site builder and developer level

This book demonstrates the power and flexibility of the Rules framework. It discusses the main aspects of the module both from the site builder and developer perspective, from basic and advanced Rule configurations using Events, Conditions, Actions and Components to getting familiar with the Rules API.

You will also learn how to use additional modules together with Rules to further extend the possibilities of your Drupal system, such as Rules Scheduler to schedule the execution of your Rule configurations and Views Bulk Operations to execute Rule configurations on a view result list. The book also demonstrates the main API features that enable you to create your own Events, Conditions and Actions, provide new data types to Rules and execute your configurations programmatically

Table of Contents

  1. Drupal Rules How-to
    1. Drupal Rules How-to
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Errata
        2. Piracy
        3. Questions
    7. 1. Drupal Rules How-to
      1. Understanding the basics of Reaction Rules (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
          1. Events
          2. Conditions
          3. Actions
      2. Displaying a message on the site (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      3. Sending e-mail notifications (Must know)
        1. How to do it...
        2. How it works...
        3. There's more...
      4. Sending notifications if someone comments on a node created by another user (Must know)
        1. How to do it...
        2. There's more...
          1. Sending notifications only if the user wants to receive them
      5. Using loops and lists (Must know)
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Components – Reusing Rules, Conditions, and Actions (Must know)
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Other component types
          2. Parameters and provided variables
      7. Using the Rules Scheduler (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Schedule UI
      8. Debugging Rules (Must know)
        1. How to do it...
        2. How it works
        3. There's more...
      9. Using PHP in Conditions and Actions (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Using PHP in Actions
          2. Best practice
      10. Using condition groups (Should know)
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Combining condition groups
      11. Subscribe to comments on a node using Rules and Flag (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Events
          2. Conditions
          3. Actions
      12. Adding a taxonomy term to a node using Views Bulk Operations and Rules (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      13. Loading a list of objects into Rules using VBO (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
      14. Rules Bonus Pack (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      15. Providing new Events, Conditions, and Actions (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Events
          2. Conditions
          3. Actions
          4. Clearing the caches
      16. Providing new entity tokens (Become an expert)
        1. How to do it...
        2. How it works...
      17. Executing Rules programmatically (Become an expert)
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Executing standalone plugins
      18. Providing new variables for Actions (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
      19. Providing default rule configurations (Become an expert)
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Altering default rule configurations
          2. Making changes to the configuration on the UI