function deploy_default_rules_configuration in Deploy - Content Staging 7.3
Implements hook_default_rules_configuration().
File
- ./
deploy.rules_defaults.inc, line 11 - Default rules configuration for deploy module.
Code
function deploy_default_rules_configuration() {
$items = [];
$items['rules_remove_entity_from_deployment_plan'] = entity_import('rules_config', '{ "rules_remove_entity_from_deployment_plan" : {
"LABEL" : "Remove entity from deployment plan",
"PLUGIN" : "action set",
"OWNER" : "rules",
"TAGS" : [ "deploy" ],
"REQUIRES" : [ "deploy" ],
"USES VARIABLES" : { "dme" : { "label" : "Plan entry", "type" : "deploy_manager_entities" } },
"ACTION SET" : [ { "deploy_manager_entity_remove" : { "dme" : [ "dme" ] } } ]
}
}');
$items['rules_use_latest_revision_of_entity'] = entity_import('rules_config', '{ "rules_use_latest_revision_of_entity" : {
"LABEL" : "Use Latest Revision of Entity",
"PLUGIN" : "action set",
"OWNER" : "rules",
"TAGS" : [ "deploy" ],
"REQUIRES" : [ "deploy" ],
"USES VARIABLES" : { "dme" : { "label" : "Plan entry", "type" : "deploy_manager_entities" } },
"ACTION SET" : [ { "deploy_manager_entity_use_latest_revision" : { "dme" : [ "dme" ] } } ]
}
}');
return $items;
}