Active
Project:
State Machine
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 May 2012 at 18:11 UTC
Updated:
10 Dec 2015 at 20:23 UTC
Jump to comment: Most recent
I just pushed the 3.x branch that Robeano and I worked on for a client. It was started off of 1.x a few months ago so there are changes in 2.x not present in 3.x. We can use this issue to track the big pieces and resolve them in this issue or spin-offs.
I will be at Drupal Camp Twin Cities this weekend and will write up a more complete summary of the tasks to be done.
Comments
Comment #1
robeano commentedAs I work on merging changes between 2.x and 3.x in state_flow.module, I noticed that 2.x provides a hook that is not yet implemented in 3.x:
* @todo - provide a hook when juggling revisions
* In State Machine 7.x-2.x, a hook was provided via
* state_flow_promote_node_revision() allowing modules to run their own
* processes when a revision id is pushed to the entity base table.
* i.e.
* // Notify other modules about the vid change
* module_invoke_all('state_flow_change_vid', $current_vid, $new_rev);
* State flow Entity should provide this hook as well.
I think a thorough review of where hooks should be implemented is warranted.
At a minimum, we should provide a hook during the revision juggling in State Flow Entity and State Flow (Node).
Comment #2
robeano commentedAnother hook to review.
In modules/state_flow_entity/plugins/state_flow_entity.inc, a hook is implemented for use when an event is fired (StateFlowEntity::fire_event()). In 7.x-2.x, this hook is implemented as well but with different arguments. We need to review this and fix as needed.
In state_flow_entity.inc:
Comment #2.0
robeano commentedFilling out 3.x changes
Comment #3
das-peter commentedI just merged the 3.x-drafty branch into the 7.x-3.x main branch. The test so far look very good.
Comment #4
das-peter commentedJust enhanced entity_translation support: #2546728: Edition of a node revision with Entity Translation language switcher
To make use of this new functionality you've to apply a patch to entity translation: #1707156: Workbench Moderation integration
I just tagged the release: 7.x-3.0-beta1 as the features seem quite stable and complete.