aggregator_element_data

Definition

aggregator_element_data($parser, $data)
modules/aggregator.module, line 306

Description

Call-back function used by the XML parser.

Code

<?php
function aggregator_element_data($parser, $data) {
  global $channel, $element, $items, $item, $image, $tag;

  switch ($element) {
    case 'ITEM':
      $items[$item][$tag] .= $data;
      break;
    case 'IMAGE':
      $image[$tag] .= $data;
      break;
    case 'TEXTINPUT':
      // The sub-element is not supported. However, we must recognize
      // it or its contents will end up in the item array.
      break;
    default:
      $channel[$tag] .= $data;
  }
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.