You are here

function update_status_xml_parser::data in Update Status 5.2

File

./update_status.module, line 1754

Class

update_status_xml_parser
XML Parser object to read Drupal's project info files This uses PHP4's lame XML parsing, but it works. Mostly.

Code

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