Example Drupal Rules actions and conditions as a module –
Custom rules

Custom Rules Actions

Using hook_rules_action_info()

This example provides two new actions:

  • Delete field_collection_item
  • Clear Drupal messages by type

References:

Custom Rules Conditions

Using hook_rules_condition_info()

This example provides four new Drupal Rules conditions:

  • Is cron running
  • Is during password reset
  • Is destination set in URL
  • Is during OAuth

References:

About the Author

Jonathan Daggerhart

Long time Drupal and WordPress developer. I like to write modules and plugins, and I dabble in frontend and design.

Leave a Reply

Your email address will not be published. Required fields are marked *