Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello
Need to get rule settings for my custom module. Try to call rules_config_load('RULE_NAME') but it doesn't work as expected.It returns only array containing basic information (Id, name etc), "settings" array is empty.
What's wrong?
Comments
Comment #1
mlsamuelson CreditAttribution: mlsamuelson commentedI had the same issue. The posting at http://stackoverflow.com/questions/7023863/how-to-get-drupal-rules-settings helped.
Essentially you load the config:
Then call the actions() method on the $rule_config object in a foreach to build an array of the settings:
Comment #2
TR CreditAttribution: TR commented