/[drupal]/contributions/modules/import_html/import_html.test
ViewVC logotype

Diff of /contributions/modules/import_html/import_html.test

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

revision 1.1.2.2, Wed Jul 1 02:40:56 2009 UTC revision 1.1.2.3, Tue Oct 6 14:09:02 2009 UTC
# Line 177  $this->pass($this->drupalGetContent()); Line 177  $this->pass($this->drupalGetContent());
177        "Submitted and successfully processed all import files in BATCH mode. Got as far as the results page summary."        "Submitted and successfully processed all import files in BATCH mode. Got as far as the results page summary."
178      );      );
179    
180  $this->pass($this->drupalGetContent());      $this->pass($this->drupalGetContent());
181    
182    }    }
183    
# Line 192  $this->pass($this->drupalGetContent()); Line 192  $this->pass($this->drupalGetContent());
192      $this->parse();      $this->parse();
193      $elements = $this->xpath('//input');      $elements = $this->xpath('//input');
194      foreach ($elements as $element) {      foreach ($elements as $element) {
195        if($element['type'] == 'checkbox' && strstr($element['name'], 'file_rel_path')) {        if ($element['type'] == 'checkbox' && strstr($element['name'], 'file_rel_path')) {
196          #$this->pass("Found checkbox indicating file to import ". print_r($element, 1) );          #$this->pass("Found checkbox indicating file to import ". print_r($element, 1) );
197          // I need to figure out my own ][ brackets :(          // I need to figure out my own ][ brackets :(
198          $edit[ 'file_rel_path['.$element['value'].']' ] = ''.$element['value'];          $edit["file_rel_path[{$element['value']}]"] = ''. $element['value'];
199          // That was HACKY!          // That was HACKY!
200        }        }
201      }      }

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