You are here

function blockgroup_features_export in Block Group 7.2

Same name and namespace in other branches
  1. 7 blockgroup.features.inc \blockgroup_features_export()

Implements [component]_features_export().

File

./blockgroup.features.inc, line 17
Features integration for Block Group module.

Code

function blockgroup_features_export($data, &$export, $module_name = '') {
  $pipe = array();
  $blockgroups = blockgroup_list();
  $export['dependencies']['features'] = 'features';
  $export['dependencies']['blockgroup'] = 'blockgroup';
  foreach ($data as $delta) {
    if (isset($blockgroups[$delta])) {
      $export['features']['blockgroup'][$delta] = $delta;
    }
  }
  return $pipe;
}