You are here

function data_taxonomy_vocabulary_id in Data 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

data_taxonomy/data_taxonomy.module, line 530
Hooks and API functions for Data Node module.

Code

function data_taxonomy_vocabulary_id($vocabulary) {
  if (strpos($vocabulary->module, 'features_') === 0) {
    return $vocabulary->module;
  }
  return $vocabulary->vid;
}