Convert an exported rule to a programmatic rule I created a Rule through the GUI and it works fine.  I would like to convert this into a programmatic rule that I can include with my custom module.  This way I dont have to re import my rule every time I set up a site.  Is there any way to do this (other than manually)?
You can implement hook_default_rules_configuration()


  This hook is invoked when rules configurations are loaded. The implementation should be placed into the file MODULENAME.rules_defaults.inc, which gets automatically included when the hook is invoked.


and use entity_import() to convert the export string into something Rules will understand. e.g.

function MYMODULE_default_rules_configuration() {
  $items['my_rule'] = entity_import('rules_config', 'EXPORT STRING HERE');

  return $items;
}