function commerce_recurring_stop_recurring in Commerce Recurring Framework 7.2
Mark a recurring entity as inactive.
Parameters
$recurring_entity: A commerce recurring entity.
3 calls to commerce_recurring_stop_recurring()
- commerce_recurring_rules_generate_order_from_recurring in ./
commerce_recurring.rules.inc - Generate the orders from the recurring entity.
- commerce_recurring_rules_stop_recurring in ./
commerce_recurring.rules.inc - React to disable the recurring entity associated to a given entity.
- commerce_recurring_ui_cancel_renewals_form_submit in commerce_recurring_ui/
commerce_recurring_ui.module - Cancel subscription submit handler
1 string reference to 'commerce_recurring_stop_recurring'
File
- ./
commerce_recurring.module, line 545 - Commerce recurring module file.
Code
function commerce_recurring_stop_recurring($recurring_entity) {
$recurring_entity->status = 0;
rules_invoke_event('commerce_recurring_stop_recurring', $recurring_entity);
entity_save('commerce_recurring', $recurring_entity);
}