You are here

function custom_breadcrumbs_features_generic_export in Custom Breadcrumbs Features 7.2

Generic function for hook_features_export().

Parameters

$table: Table storing crumbs.

Return value

Pipe array as expected by hook_features_export().

7 calls to custom_breadcrumbs_features_generic_export()
custom_breadcrumbsapi_features_export in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export(). [component hook]
custom_breadcrumbs_panels_features_export in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export(). [component hook]
custom_breadcrumbs_paths_features_export in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export(). [component hook]
custom_breadcrumbs_taxonomy_term_features_export in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export(). [component hook]
custom_breadcrumbs_taxonomy_vocabulary_features_export in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export(). [component hook]

... See full list

File

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

Code

function custom_breadcrumbs_features_generic_export($data, &$export, $module_name, $table, $pipe = array()) {

  // Add dependency on features modules.
  $export['dependencies']['features'] = 'features';
  $export['dependencies']['custom_breadcrumbs_features'] = 'custom_breadcrumbs_features';

  // Add dependency on breadcrumbs submodule.
  $types = _custom_breadcrumbs_features_get_types();
  $module = $types[$table]['module'];
  $export['dependencies'][$module] = $module;

  // Add featurized stuff.
  foreach ($data as $component) {
    $export['features'][$table][$component] = $component;
  }
  return $pipe;
}