| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: workflow_ng_workflow_ng_forms.inc,v 1.1.2.2 2008/07/11 08:19:46 fago Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file Some workflow-ng configuration forms |
* @file Some workflow-ng configuration forms |
| 16 |
function workflow_ng_custom_php_get_used_php_arguments($code, $argument_info) { |
function workflow_ng_custom_php_get_used_php_arguments($code, $argument_info) { |
| 17 |
$used_args = array(); |
$used_args = array(); |
| 18 |
foreach ($argument_info as $name => $argument) { |
foreach ($argument_info as $name => $argument) { |
| 19 |
if (strpos($code, '$'. $name) !== FALSE) { |
if (strpos($code, '$'. $name) !== FALSE || strpos($code, '${'. $name .'}') !== FALSE) { |
| 20 |
$used_args[] = $name; |
$used_args[] = $name; |
| 21 |
} |
} |
| 22 |
} |
} |
| 38 |
$rows = array(); |
$rows = array(); |
| 39 |
foreach ($argument_info as $name => $argument) { |
foreach ($argument_info as $name => $argument) { |
| 40 |
$row = array(); |
$row = array(); |
| 41 |
$row[] = '$'. $name; |
$row[] = strpos($name, '-') === FALSE ? '$'. $name : '${'. $name .'}'; |
| 42 |
$row[] = $argument['#entity']; |
$row[] = $argument['#entity']; |
| 43 |
$row[] = isset($argument['#label']) ? $argument['#label'] : ''; |
$row[] = isset($argument['#label']) ? $argument['#label'] : ''; |
| 44 |
if ($allow_saves) { |
if ($allow_saves) { |