_yellow_parse_listing

Definition

_yellow_parse_listing($xml)
yellow/yellow.module, line 452

Code

function _yellow_parse_listing($xml) {
  $data['title'] = $xml['Title'];
  $data['tags'] = array();
  $data['location'] = array();
  $data['body'] = check_plain($xml['Distance']) . ' miles' . '<br />' . check_plain($xml['Address']) . ' ' . check_plain($xml['City']) . ', ' . check_plain($xml['State']) . ' | ' . check_plain($xml['Phone']) . '<br />';
  // prep locative info to save as tags
  $location = $xml['City'];
  $location .= ', ' . $xml['State'];     
        $data['location'] = $location;
  return $data;
}