Closed (fixed)
Project:
Commerce Cart Expiration
Version:
7.x-1.4
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Feb 2012 at 14:17 UTC
Updated:
24 Jan 2018 at 12:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amateescu commentedThat's a good question :) You can override the default by using
hook_default_rules_configuration_alter().I guess that should be documented in a README.txt. Do you think you have the time to write a patch for it?
Comment #2
jgalletta commentedI'm currently struggling with the hook to understand how to properly alter the interval, once I'll figure out how to do I'll write something about it.
Comment #3
jgalletta commentedOk so I can't find a way to alter the action if the hook_default_rules_configuration_alter.
I can add a new action but not remove or modify an existing one...
And when I try to override the entire rule configuration, I have duplicates in the database.
Am I missing something obvious?
EDIT:
I managed to get what I want with this code, but it's ugly:
Comment #4
amateescu commentedIt's not that ugly.. and that's actually the only way to do it, but you also need to check the name of the action that you're altering. Something like this:
Comment #5
jgalletta commentedHey,
I wrote a README.txt and created the patch to add it to the module.
Please tell me if you want to do some changes on it.
Comment #6
jgalletta commentedChange issue status.
Comment #7
amateescu commentedI basically rewrote the file and committed it to 7.x-1.x. Thanks for starting it :)
http://drupalcode.org/sandbox/amateescu/1454320.git/commit/5521f28
Comment #9
Collins405 commentedI cant get this to work, Ive added the code from the readme, and ive added it to my_module.rules_defaults.inc but it wont affect the interval, can anyone help?