I would like users to be able to mass update recurring date rules possibly using VBO and Rule sets.
For example: user would like to add "exclude date = 01/01/2012" recurring date rule for all selected nodes' dates where date is a new field added to a content type.
How to do this ?
---=EDIT=---
I have already build a basic Rule with the following code:
{ "rules_change_end_date_for_selected_content" : {
"LABEL" : "Change end date for selected content(s) (Test rule)",
"PLUGIN" : "rule",
"REQUIRES" : [ "rules" ],
"USES VARIABLES" : {
"node" : { "label" : "Content", "type" : "node" },
"event_end_date" : { "label" : "Event End Date", "type" : "date" }
},
"IF" : [
{ "entity_has_field" : { "entity" : [ "node" ], "field" : "field_event_date" } },
{ "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "event" : "event" } } } }
],
"DO" : [
{ "data_set" : {
"data" : [ "node:field-event-date:0:value2" ],
"value" : [ "event-end-date" ]
}
},
{ "entity_save" : { "data" : [ "node" ] } }
]
}
}
What should I put instead of node:field-event-date:0:value2
to modify the date rule end date ( not the first date enddate). I would like to change the date until this node repeats but I cannot see tokens for the date repeating rule.