Module Development

Miscellaneous Tips When Coding for Rules for Drupal 7

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

Sprout Video

This screencast gives miscellaneous tips when writing Rules plugins, such as:

  • Some words on declaring new data types for Rules
  • How to restrict access to plugins
  • How to form alter plugin configuration forms
  • How to provide additional form validation
  • How to use the "base" property to provide a non-default callback function
  • How to invoke events programmatically with all arguments in a single array
  • How to use drupal_static() to share variables/values with other parts of Drupal