You are here

function patterns_load_xml in Patterns 6

Same name and namespace in other branches
  1. 5 patterns.module \patterns_load_xml()
  2. 6.2 patterns.module \patterns_load_xml()

File

./patterns.module, line 1145
Enables extremely simple adding/removing features to your site with minimal to no configuration

Code

function patterns_load_xml($path, $local = TRUE) {
  if ($local && !file_exists($path)) {
    return FALSE;
  }
  if (!($xml = file_get_contents($path))) {
    return FALSE;
  }
  return patterns_load_string_xml($xml);
}