Created
December 14, 2015 17:20
-
-
Save robballou/b7148a3db1db12b9b4e2 to your computer and use it in GitHub Desktop.
Get Drupal Rules configuration settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$rule = 'some_rule'; | |
$config = db_query('SELECT data FROM rules_config WHERE name=:name', array(':name' => $rule))->fetchColumn(0); | |
$rule_config = json_decode(unserialize($config)->export()); | |
// $rule_config = $rule_config->$rule->DO[0]->rule->thing->value->settings; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment