Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download tar.gz 92.79 KB
MD5: 4735e55d9fddd6e894ce7f3428a01b4e
SHA-1: f69d0d1455c068e0080c28240be050d081dfc447
SHA-256: ff34438d8d7c7147fad3c60d6bc47fd8364ab9fdb1e02aa55e399495ed11396d
Download zip 128.95 KB
MD5: dd1b8e8e7d2f0c303a8242003a8050de
SHA-1: 7f5cd345b21ca385d2f109cd4aa84f8a6df7fcf1
SHA-256: 56f795e080700e5175bd3608751c32f6d44b908f98c3f66228f75b7d40594758

Release notes

Release 2.0 contains 2 major features:

  1. Issue #2019345: A 'Workflow Field' is added, to allow workflow on any entity, leveraging Field API. The Workflow can also be changed from the comment form by adding the same field to the node type and its comment.
  2. Lots of code is reshuffled into OO classes. Although this adds no new functionality, it reduces duplicate code and facilitates a future upgrade to Drupal 8.

For module builders, this introduced some incompatibilities with the previous version 7.x-1.2. Please see the change records.

Furthermore, lots of issues have been resolved. All changes are listed in CHANGELOG.txt. Below is a list of highlighted commits:

Since 7.x-1.2
Issue #2037531 by johnv, NancyDru: Fix choices return value.
Issue #2039859 by Scaythe: Fix double encoding.
Issue #2043667 by rodrigoeg, johnv: Fix typo in tokens.
Issue #2044199 by justanothermark: Fix Feature reversion on non-existent states.
Issue #2019345 by NancyDru: Allow hooks to reside in separate file.
Issue #2052707 by NancyDru: Fix typo in single state value.
Issue #2056773 by ambientdrup: Fix typo in VBO.
Issue #2041329 by johnv: Changed api: added workflow_get_workflows_by_type(), for shorter code.
Issue #2071663 by johnv: Changed function workflow_node_tab_access to gain performance.
Issue #2071733 by johnv: Changed determination of showing Form, with new function workflow_show_form.
Issue #2041319 by johnv: Added function workflow_get_first_state(), to have more unified code.
Issue #2072059 by johnv: Changed call to hook_form_alter, by using hook_form_BASE_FORM_ID_alter, creating better performance.
Issue #2072203 by johnv: Moved all node API functions from module file to node.inc file, to facilitate introduction of field API.
Issue #2072081 by johnv: Fixed typo in workflow_node_tab_access().
Issue #2080915 by NancyDru: Signal Rules on reversion.
Issue #2082247 by johnv: Added caching to workflow_field_choices().
Issue #1357406 by pikku-h: Fixed Cron Scheduling keeps repeating if Old state and New state are the same.
Issue #2019345 by johnv: Create a Workflow Field on any entity.
Issue #2019345 by johnv: Added classes for WorkflowDefaultWidget, WorkflowItem (Field type), Workflow, WorkflowState.
Issue #2087851 by ttkaminski: Fixed failing upgrade 7001 due to missing function: workflow_get_workflows().
Issue #2042345 by arpeggio, rickdonohoe, johnv: Added dependency on "Views>3.3" to Workflow Views submodule.
Issue #2094031 by johnv: Added return parameter to workflow_execute_transition().
Issue #884788 by gdud, liquidcms: Fixed Views field "State: Current state name" isn't translated.
Issue #2086287 by dooug: Fixed many typos in workflow and sub-modules.
Issue #2086605 by johnv: Added settings to hide TimeZone for "Schedule for state change" option.
Issue #2019345 by johnv: Fixed #states to hide/show scheduling info in Workflow Field Widget.
Issue #2095467 by johnv: Changed flow logic to use new class WorkflowScheduledTransition.
Issue #2095467 by johnv: Moved deprecated functions for class WorkflowScheduledTransition to new file workflow.deprecated.inc.
Issue #2071733 by johnv: Changed workflow_show_form() to work with both old and new workflow objects.
Issue #2102405 by johnv: Added basic Entity support for Workflow Field.
Issue #2102405 by johnv: Added Entity support for Workflow Scheduled Transitions.
Issue #2102405 by johnv: Fixed indices for Workflow Scheduled Transitions.
Issue #2019345 by johnv: Fixed order of States in Options list doesn't respect weight.
Issue #2019345 by johnv: Added 'property_info' to Workflow Field for Entity/ Rules support.
Issue #2019345 by johnv: Added 'grouped' options for Workflow::getOptions().
Issue #2111043 by johnv: Moved function workflow_field_choices() to WorkflowState->getOptions().
Issue #2102663 by johnv: Fixed apparently rules functions must be in main include.
Issue #2111795 by johnv: Fixed error when adding a Workflow with a name that is a translation of other workflow's name.
Issue #2112263 by Nancydru: Typo in workflow_get_workflow)by_sid().
Issue #2116179 by johnv: Moved workflow_type_map functions to own file workflow.node.type_map.inc.
Issue #2115199 by johnv: Moved pages from workflow_admin_ui.module to workfow_admin_ui.pages.inc, reducing footprint.
Issue #2115199 by johnv: Some cosmetic changes in workfow_admin_ui.pages.inc.
Issue #2019345 by johnv: Fixed notice when an existing node does not have a workflow value yet.
Issue #1036580 by johnv: Fixed error in Workflow Node API on Node View page when another workflow was assigned to node type.
Issue #2119921 by johnv: Added dependency to Entity API module.
Issue #2102193 by johnv: Fixed documentation of hook_workflow() in workflow.api.inc
Issue #2119921 by johnv: Moved workflow_node db functions to workflow.node.inc file.
Issue #2119921 by johnv: Moved workflow_requirements() to workflow.install file.
Issue #2122541 by johnv: Added new submodule Workflow Node.
Issue #2122541 by johnv: Moved workflow_node-specific code from WorkflowState::deactivate() to hook workflownode_workflow('state delete').
Issue #2122541 by johnv: Changed call to workflow_node specific function in workflow_admin_ui.
Issue #2122541 by johnv: Moved workflow_node-specific code from Workflow::delete() to hook workflownode_workflow('workflow delete').
Issue #2115199 by johnv: Moved workflow_admin_ui type_map page to own file, (since it is only valid for Node API) and fixed PAReview errors.
Issue #2102405 by johnv: Changed interface of workflow_tab_access, workflow_tab_page to be $entity_type resistent.
Issue #2019345 by johnv: Changed theme_workflow_history_table to add proper 'Operations column' to history table.
Issue #2102193 by johnv: Changed call to 'hook_workflow', 'transition permitted' - arguments were swapped.
Issue #2137149 by johnv: Changed Workflow History Tab to show workflow_transition_form instead of workflow_node_form.
Issue #2137149 by johnv: Changed Node View page to show workflow_transition_form instead of workflow_node_form.
Issue #2137149 by johnv: Removed workflow_tab_form code, since it is replaced by workflow_transition_form.
Issue #2137219 by johnv: Changed workflow_actions to support Workflow Field.
Issue #2122541 by johnv: Fixed strict warnings in WorkflowScheduledTransition.
Issue #2137149 by johnv: Changed Node Edit page to show workflow_transition_form instead of workflow_node_form.
Issue #2019345 by johnv: Fixed notices on WorkflowDefaultWidget.
Issue #2137149 by johnv: Changed Node Comment form to show workflow_transition_form instead of workflow_node_form.
Issue #2137149 by johnv: Changed code to use workflow_state_formatter to show Current State on any form.
Issue #2137149 by johnv: Removed workflow_node_form: use workflow_transition_form instead.
Issue #2120451 by Kirsten Pol: Fixed superfluous sort when loading workflow_history_node.
Issue #212429 by johnv: Fixed do not revert to deleted, disabled, same state in workflow_revert.

Created by: johnv
Created on: 25 Nov 2013 at 22:34 UTC
Last updated: 22 May 2019 at 16:53 UTC
Bug fixes
New features
Insecure
Unsupported

Other releases