public function WorkflowTransition::post_execute in Workflow 7.2
Invokes 'transition post'.
Add the possibility to invoke the hook from elsewhere.
File
- includes/
Entity/ WorkflowTransition.php, line 494 - Contains workflow\includes\Entity\WorkflowTransition. Contains workflow\includes\Entity\WorkflowTransitionController.
Class
- WorkflowTransition
- Implements an actual Transition.
Code
public function post_execute($force = FALSE) {
$old_sid = $this->old_sid;
$new_sid = $this->new_sid;
$entity = $this
->getEntity();
// Entity may not be loaded, yet.
$entity_type = $this->entity_type;
// $entity_id = $this->entity_id;
$field_name = $this->field_name;
$state_changed = $old_sid != $new_sid;
if ($state_changed || $this->comment) {
module_invoke_all('workflow', 'transition post', $old_sid, $new_sid, $entity, $force, $entity_type, $field_name, $this);
}
}