/[drupal]/contributions/modules/workflow_ng/workflow_ng/modules/workflow_ng_workflow_ng_forms.inc
ViewVC logotype

Diff of /contributions/modules/workflow_ng/workflow_ng/modules/workflow_ng_workflow_ng_forms.inc

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

revision 1.1.2.2, Fri Jul 11 08:19:46 2008 UTC revision 1.1.2.3, Thu Feb 19 12:04:54 2009 UTC
# Line 1  Line 1 
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
# Line 16  Line 16 
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    }    }
# Line 38  function theme_php_argument_help($argume Line 38  function theme_php_argument_help($argume
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) {

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2