function taxonomy_vocabulary_id in Feeds 6
Return the vocabulary identifier, the vocabulary's vid or module.
Return value
Vocabulary's module name if it is a features vocabulary (= exportable), vocabulary's vid otherwise.
File
- mappers/
taxonomy.inc, line 187 - Mapper that exposes a node's taxonomy vocabularies as mapping targets.
Code
function taxonomy_vocabulary_id($vocabulary) {
if (strpos($vocabulary->module, 'features_') === 0) {
return $vocabulary->module;
}
return $vocabulary->vid;
}