You are here

function custom_breadcrumbs_taxonomy_vocabulary_features_export in Custom Breadcrumbs Features 7.2

Implements hook_features_export(). [component hook]

File

includes/custom_breadcrumbs_features.features.inc, line 150
Code to provide custom_breadcrumbs with features integration.

Code

function custom_breadcrumbs_taxonomy_vocabulary_features_export($data, &$export, $module_name) {

  // Add vocabularies as dependency.
  $vocab_machine_names = array();
  $vocabs = taxonomy_get_vocabularies();
  foreach ($data as $machine_name) {
    $vid = custom_breadcrumbs_features_generic_load($machine_name, 'custom_breadcrumbs_taxonomy_vocabulary')->vid;
    $vocab_machine_names[] = taxonomy_vocabulary_load($vid)->machine_name;
  }
  $pipe = array(
    'taxonomy' => drupal_map_assoc($vocab_machine_names),
  );
  return custom_breadcrumbs_features_generic_export($data, $export, $module_name, 'custom_breadcrumbs_taxonomy_vocabulary', $pipe);
}