/[drupal]/contributions/modules/na_arbitrator/workflow_access.module
ViewVC logotype

Diff of /contributions/modules/na_arbitrator/workflow_access.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4, Sat Apr 8 23:51:34 2006 UTC revision 1.5, Tue Jul 4 16:58:38 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: workflow_access.module,v 1.3 2006/03/24 03:41:22 merlinofchaos Exp $  // $Id: workflow_access.module,v 1.4 2006/04/08 23:51:34 merlinofchaos Exp $
3    
4  /**  /**
5   * @file workflow_access.module   * @file workflow_access.module
# Line 201  function workflow_access_form_submit($fo Line 201  function workflow_access_form_submit($fo
201    }    }
202  }  }
203    
204    /**
205     * be sure to update grants when a node changes workflow; we had at one
206     * point set that to call node_save, but that turned out to be the
207     * wrong behavior.
208     */
209    function workflow_access_workflow($op, $old_sid, $sid, $node) {
210      if ($op == 'transition post' && $old_sid != $sid) {
211        na_arbitrator_acquire_grants($node);
212      }
213    }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2