| 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 |
| 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 |
|
} |