You are here

function config_pages_features_export in Config Pages 7

Implements hook_features_export().

File

./config_pages.features.inc, line 41
Integrates with features.

Code

function config_pages_features_export($data, &$export, $module_name = '') {
  $args = func_get_args();
  $pipe = array();
  $export['dependencies']['features'] = 'features';
  foreach ($data as $name) {

    // Add config_types to dependencies pipe.
    $type_name = current(explode('-', $name));
    $type = config_pages_get_types($type_name);
    $pipe['config_pages_type'][] = $type_name;

    // Add config to feature.
    $export['features']['config_pages'][$name] = $name;
  }
  return $pipe;
}