This ticket is a child of #615306: Conditional Actions
I'm porting CA to D7 in Bzr: http://bazaar.launchpad.net/~jody-zivtech/uc/trunk/files
Major things that I've changed for review:
- Renamed ca.module and all functions/tables/hooks to uc_ca. The hooks previously began with ca, and now begin with uc_ca. Should they have just the 'uc' prefix without 'ca'?
- Updated code for D7 API changes. Changes to theme_table parameters, DBTNG, hook_permission, etc. My newb DBTNG could use review.
- General clean-up stuff. Killed a bunch of notices I got with E_ALL on. Got rid of the use of hacky variable 'ca_predicates_pid'.
- Removed 'uid' field from the predicates table as it did not seem to get populated anywhere. If this is the case this fix should potentially be backported.
- Changed function names to end with verb. Used 'uc_predicate_load' as a menu load function for some admin pages to reduce complexity.
- Allowed the dsm action to use regular Drupal text format options
Comments
Comment #1
jody lynnI'm putting in a merge request for this. I've tested the updated admin interface pretty well, and I think this is a good starting point and needs review.
I haven't actually tested pulling a fake trigger to fire an action.
Comment #2
rszrama commentedSadly, this work has been deprecated due to the later adoption of Rules 2 based on a code review and the presence of fago at the Drupal Commerce Sprint. Thanks for the work on this, Jody, and sorry we didn't nail this down soon enough to avoid the unnecessary port. : (
Comment #3
rszrama commentedComment #4
sreekanth1201 commentedI want to update my registration profile with order id and status after check out.I know that conditional actions replace with Rules i drupal 7..I want to execute php code in rules like how we can do in conditional action..when i say add to cart the node is saving and asking for check out..i want to update that node after check out..please help...