Skip to Content

DrupalCon Paris 2009: Rule-based Automation

Rules: How to leverage rule-based automation on your sites!

Wolfgang Ziegler (fago), klausi
SESSION: http://paris2009.drupalcon.org/session/rules-how-leverage-rule-based-aut...
SLIDES: ??
VIDEO: http://www.archive.org/details/RulesHowtoleveragerule-basedautomationony...

  • http://drupal.org/project/rules
  • More features for triggers in core
  • Event – Condition – Action
  • Administer → Rules
  • Rules debugging in settings
  • Import / Export
  • Rule Sets
  • Scheduling
  • Part of Google Summer of Code: Rules Monkey Project
  • Rules form support
    • Customize using hook_form_alter
    • Events
      • Form being built
      • Validate
      • Submit
    • Conditions
      • Element has value
    • Actions
      • Hide element
      • Disable element
      • Weight element
      • Redirect
      • form_set_error
  • Tutorial: http://drupal.org/node/298482
  • Use Cases
    • Act on user inactivity
      • Trigger
      • Rule sets
      • Send email
      • Block user 1 week later
      • Cancel scheduling if log in
    • Editor vs Publisher of content
      • CCK field for state of workflow
        • Draft
        • Published
      • Content permissions
        • Only “publisher” can change value of CCK field
        • Both roles can edit content
      • Include Form Support feature
        • 3rd state of CCK field
          • Ready
      • Hide “publish” from Editors


Find Me

  • twitter.png
  • linkedin.png
  • drupal.png
  • facebook.png
  • smugmug.png
  • kaboodle.png
  • youtube.png