Skip to content

Instantly share code, notes, and snippets.

@robballou
Created December 14, 2015 17:20
Show Gist options
  • Save robballou/b7148a3db1db12b9b4e2 to your computer and use it in GitHub Desktop.
Save robballou/b7148a3db1db12b9b4e2 to your computer and use it in GitHub Desktop.
Get Drupal Rules configuration settings
<?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