function rules_import
Imports the given export and returns the imported configuration.
Parameters
string $export: A serialized string in JSON format as produced by the RulesPlugin::export() method, or the PHP export as usual PHP array.
string $error_msg:
Return value
3 calls to rules_import()
- RulesTestCase::testRuleImportExport in tests/
rules.test - Tests importing and exporting a rule.
- rules_test_default_rules_configuration in tests/
rules_test.rules_defaults.inc - Implements hook_default_rules_configuration().
- rules_ui_import_form_validate in ui/
ui.forms.inc - Validation callback for the import form.
File
-
./
rules.module, line 549
Code
function rules_import($export, &$error_msg = '') {
return entity_get_controller('rules_config')->import($export, $error_msg);
}