function taxonomy_xml_rdf_requirements in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 6.2 rdf_format.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_utils.inc, line 233 - Experimental library for working with RDF within taxonomy_xml
Code
function taxonomy_xml_rdf_requirements() {
$requirements = array();
$arc2_library_path = rdf_arc2_library_path();
if (!is_readable($arc2_library_path . "/ARC2.php")) {
$requirements['taxonomy_xml_rdf'] = array(
'value' => t('ARC1 RDF Parser is unavailable.'),
'severity' => 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' => 'https://github.com/semsol/arc2',
'!install' => url(drupal_get_path('module', 'taxonomy_xml') . '/INSTALL.txt'),
'%path' => 'sites/all/libraries',
)),
);
}
return $requirements;
}