You are here

function emapi_retrieve_xml in Embedded Media Field 6.3

A wrapper around simplexml to retrieve a given XML file.

Parameters

$url: The URL to the XML to retrieve. @param $display_errors Optional; if TRUE, then we'll display errors to the end user. They'll be logged to the watchdog in any case. @param $refresh Optional; if TRUE, then we'll force a new load of the XML. Otherwise, a cached version will be retrieved if possible. @return A fully populated object, or FALSE on an error.

1 call to emapi_retrieve_xml()
emfield_retrieve_xml in deprecated/emfield-deprecated.inc
A wrapper around simplexml to retrieve a given XML file.

File

emapi/emapi.module, line 170
Provides an API for parsing, storage, and display of third party media.

Code

function emapi_retrieve_xml($url, $display_errors = FALSE, $refresh = FALSE) {
  module_load_include('inc', 'emapi', 'includes/emapi.xml');
  return _emapi_retrieve_xml($url, $display_errors, $refresh);
}