function menu_taxonomy_xml_rdf_export_term in Taxonomy import/export via XML 6.2
Add menu information to the export document.
Produce something like:
<rdfs:Class rdf:ID="term-35631" drupal:path="news/weather" drupal:menu="1">
HOOK_taxonomy_xml_rdf_export_term
Parameters
$termnode The context to add attributes to, an XML term element,: already partially built. Modified by reference
$term The term being exported:
File
- includes/
taxonomy_xml.menu.inc, line 23 - Support for importing or exporting menu items along with terms
Code
function menu_taxonomy_xml_rdf_export_term($termnode, $term) {
$dom = $termnode->nodeType == XML_DOCUMENT_NODE ? $termnode : $termnode->ownerDocument;
// Path generally isn't loaded directly on a $term object,
// but a term object may still have a path alias in the system.
$path = '';
$system_path = taxonomy_term_path($term);
//
// TODO
//
return;
$do_menu = $menu ? TRUE : FALSE;
$termnode
->setattributens(TAXONOMY_XML_DRUPAL_NS, 'drupal:menu', $do_menu);
}