You are here

function taxonomy_xml_rdf_requirements in Taxonomy import/export via XML 6.2

Same name and namespace in other branches
  1. 7 rdf_utils.inc \taxonomy_xml_rdf_requirements()

Check ARC RDF library is available

(should look into starting to use chaostools to manage plugins?)

For now, if it returns anything but an empty string, that means there's a fail.

File

./rdf_format.inc, line 1109
Include routines for RDF parsing and taxonomy/term creation. @author dman http://coders.co.nz

Code

function taxonomy_xml_rdf_requirements() {
  $requirements = array();
  if (!is_readable(TAXONOMY_XML_ARC1_PATH . "/ARC_rdfxml_parser.php")) {
    $requirements['taxonomy_xml_rdf'] = array(
      'value' => t('ARC1 RDF Parser is unavailable.'),
      'severity' => 1,
      // REQUIREMENT_WARNING,
      'description' => t('
        See <a href="!install">INSTALL.txt</a>
        for the extra features that the external
        <a href="!arc">ARC library</a> can add
        if you download it to %path.
      ', array(
        '!arc' => 'http://arc.semsol.org/',
        '!install' => url(drupal_get_path('module', 'taxonomy_xml') . '/INSTALL.txt'),
        '%path' => TAXONOMY_XML_ARC1_PATH,
      )),
    );
  }
  return $requirements;
}