Problem/Motivation

The module workflow_extensions provides two tokens:
- token 'workflow-state-age' = 'Time elapsed since last state change (in seconds)'
- token 'mod-since-seconds' = 'Seconds elapsed since last modification of node'

Since workfow_extensions functionality is now being absorbed in workflow 7.x-2.3, please provide these tokens.

Proposed resolution

(Description of the proposed solution, the rationale behind it, and workarounds for people who cannot use the patch.)

API changes

The token '[mod-since-seconds]' is already available in D7 as'[node:changed:since]'
The token '[workflow-state-age]' (that shows the time in seconds since last state change) from Workflow Extensions is now named as [node:last-transition:created:seconds].
See also #2240009: Multiple workflows per bundle/node_type & tokens

Comments

johnv’s picture

1. token 'workflow-state-age' will be re-created as [node:workflow-current-state-age-seconds]
2. token 'mod-since-seconds' is already provided by Drupal 7 as [node:changed:since]

  • Commit 9ae39e1 on 7.x-2.x by johnv:
    Issue #2237125 by johnv: Reordered functions in workflow.tokens.inc.
    
johnv’s picture

Status: Active » Fixed
Parent issue: » #2228325: [META] Adopt functionality from Workflow Extensions

This commit added the token.

johnv’s picture

..

  • Commit dfde540 on 7.x-2.x by johnv:
    Issue #2237125: Removed token 'workflow-state-age' from...
johnv’s picture

Issue summary: View changes

The 'workflow-state-age' token (that shows the time in seconds since last state change) from Workflow Extensions is now named as [node:last-transition:created:seconds].

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.