You are here

function update_xml_parser::data in Drupal 6

File

modules/update/update.fetch.inc, line 273
Code required only when fetching information about available updates.

Class

update_xml_parser
XML Parser object to read Drupal's release history info files. This uses PHP4's lame XML parsing, but it works.

Code

function data($parser, $data) {
  if ($this->current_tag && !in_array($this->current_tag, array(
    'PROJECT',
    'RELEASE',
    'RELEASES',
    'TERM',
    'TERMS',
    'FILE',
    'FILES',
  ))) {
    $tag = strtolower($this->current_tag);
    if (isset($this->current_object[$tag])) {
      $this->current_object[$tag] .= $data;
    }
    else {
      $this->current_object[$tag] = $data;
    }
  }
}