function filefield_views_atom_render_field in Views Atom 6
File
- ./
views_atom.module, line 165
Code
function filefield_views_atom_render_field(SimpleXMLElement $field_xml, $field, $field_type) {
// For filefields, also encode the complete URL to the file so that it can be
// pulled by the remote system.
if ($field_type == 'filefield') {
$instances = $field_xml->{'field-instance'};
foreach ($field as $i => $instance) {
$url = file_create_url($instance['filepath']);
$new_column = $instances[$i]
->addChild('column', $url);
$new_column
->addAttribute('name', 'full_url');
}
}
}