You are here

function _taxonomy_features_get_vocabularies in Features 6

Retrieves all vocabularies viable for export.

This function omits the vocabularies whose 'module' property doesn't begin with 'features_' so that only vocabularies with non-serial identifiers are returned.

2 calls to _taxonomy_features_get_vocabularies()
taxonomy_features_export_options in includes/features.taxonomy.inc
Implementation of hook_features_export_options().
taxonomy_features_export_render in includes/features.taxonomy.inc
Implementation of hook_features_export_render().

File

includes/features.taxonomy.inc, line 98

Code

function _taxonomy_features_get_vocabularies() {
  $vocabularies = array();
  foreach (taxonomy_get_vocabularies() as $k => $vocabulary) {
    if (strpos($vocabulary->module, 'features_') === 0) {

      // Don't bother site builder with 'features_'.
      $vocabularies[substr($vocabulary->module, 9)] = $vocabulary;
    }
  }
  return $vocabularies;
}