You are here

function custom_breadcrumb_features_export in Custom Breadcrumbs Features 7.2

Implements hook_features_export(). [component hook]

File

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

Code

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

  // Add node types as dependency.
  $node_types = array();
  foreach ($data as $machine_name) {
    $node_types[] = custom_breadcrumbs_features_generic_load($machine_name, 'custom_breadcrumb')->node_type;
  }
  $pipe = array(
    'node' => drupal_map_assoc($node_types),
  );
  return custom_breadcrumbs_features_generic_export($data, $export, $module_name, 'custom_breadcrumb', $pipe);
}