--- workflow.module.orig	2008-05-09 16:59:29.000000000 +0100
+++ workflow.module	2008-05-09 16:41:53.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-// $Id: workflow.module,v 1.54.2.16 2008/01/14 17:11:57 jacobsingh Exp $
+// $Id: workflow.module 2 2008-05-08 18:12:31Z mimo $
 
 define('WORKFLOW_CREATION', 1);
 define('WORKFLOW_CREATION_DEFAULT_WEIGHT', -50);
@@ -464,7 +464,6 @@
   // Invoke a callback indicating a transition is about to occur. Modules
   // may veto the transition by returning FALSE.
   $result = module_invoke_all('workflow', 'transition pre', $old_sid, $sid, $node);
-
   if (in_array(FALSE, $result)) { // stop if a module says so
     return;
   }
@@ -2002,6 +2001,7 @@
       
       $values['workflow-current-state-name']                      =  $states[$row->sid];      
       $values['workflow-old-state-name']                          =  $states[$row->old_sid];
+      $values['workflow-future-state-name']                       =  $states[$node->workflow];
       
       $values['workflow-current-state-date-iso']                  =  date('Ymdhis',$row->stamp);
       $values['workflow-current-state-date-tstamp']               =  $row->stamp;
@@ -2027,6 +2027,7 @@
     $tokens['workflow']['workflow-name']                          =  'Name of workflow appied to this node';
     $tokens['workflow']['workflow-current-state-name']            =  'Current state of content';
     $tokens['workflow']['workflow-old-state-name']                =  'Old state of content';
+    $tokens['workflow']['workflow-future-state-name']                =  'Future state of content';
     $tokens['workflow']['workflow-current-state-date-iso']        =  'Date of last state change (ISO)';
     $tokens['workflow']['workflow-current-state-date-tstamp']     =  'Date of last state change (timestamp)';
     $tokens['workflow']['workflow-current-state-date-formatted']  =  'Date of last state change (formated - M d, Y h:i:s)';;
