function taxonomy_xml_create_synonym_field in Taxonomy import/export via XML 7
Create a synonym field that will be applied to our vocabularies.
A replacement for the D6 synonym table.
Uses field API CRUD
1 call to taxonomy_xml_create_synonym_field()
- taxonomy_xml_prepare_vocabulary in ./
taxonomy_xml.process.inc - Ensure a vocab will store our URI and extra values.
File
- ./
taxonomy_xml.process.inc, line 149 - The workhorse processes for importing taxonomies.
Code
function taxonomy_xml_create_synonym_field() {
$field = array(
'field_name' => 'field_synonym',
'type' => 'text',
'module' => 'text',
'cardinality' => 0,
'locked' => TRUE,
);
return field_create_field($field);
}