function media_retrieve_xml in D7 Media 7
A wrapper around simplexml to retrieve a given XML file.
Parameters
$url: The URL to the XML to retrieve.
$display_errors: Optional; if TRUE, then we'll display errors to the end user. They'll be logged to the watchdog in any case.
$refresh: Optional; if TRUE, then we'll force a new load of the XML. Otherwise, a cached version will be retrieved if possible.
Return value
A fully populated object, or FALSE on an error.
File
- ./
media.module, line 776 - Media API
Code
function media_retrieve_xml($url, $display_errors = FALSE, $refresh = FALSE) {
module_load_include('inc', 'media', 'includes/media.xml');
return _media_retrieve_xml($url, $display_errors, $refresh);
}