You are here

function emfield_retrieve_xml in Embedded Media Field 6.2

Same name and namespace in other branches
  1. 6.3 deprecated/emfield-deprecated.inc \emfield_retrieve_xml()

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.

File

./emfield.module, line 924
Embedded Media Field is a CCK-based framework for 3rd party media files.

Code

function emfield_retrieve_xml($url, $display_errors = FALSE, $refresh = FALSE) {
  module_load_include('inc', 'emfield', 'includes/emfield.xml');
  return _emfield_retrieve_xml($url, $display_errors, $refresh);
}