You are here

function taxonomy_xml_invoke_import_on_url in Taxonomy import/export via XML 7

Same name and namespace in other branches
  1. 6.2 taxonomy_xml.module \taxonomy_xml_invoke_import_on_url()

Load a vocabulary from the given URL and import it.

2 string references to 'taxonomy_xml_invoke_import_on_url'
taxonomy_xml_invoke_service_request in ./taxonomy_xml.process.inc
Make a request on a remote taxonomy server and process the response
url_taxonomy_service_form_submit in services/url.taxonomy_service.inc
What to do when loading from this service

File

./taxonomy_xml.module, line 306
Make it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_invoke_import_on_url($url, $params) {
  watchdog('taxonomy_xml', __FUNCTION__);
  if (empty($url)) {
    drupal_set_message('Invalid request to ' . __FUNCTION__ . ', Blank URL requested.', 'error');
    return FALSE;
  }
  $text = taxonomy_xml_cached_get_contents($url);
  if (empty($text)) {
    return FALSE;
  }
  return taxonomy_xml_invoke_import($text, $params, $url);
}