function webform_features_export in Webform Features 7.4
Same name and namespace in other branches
- 7.3 webform_features.features.inc \webform_features_export()
 
Implements hook_features_export().
File
- ./
webform_features.features.inc, line 38  - Webform Features features integration.
 
Code
function webform_features_export($data, &$export, $module_name) {
  $pipe = array();
  $export['dependencies']['webform'] = 'webform';
  $export['dependencies']['webform_features'] = 'webform_features';
  foreach ($data as $machine_name) {
    $node = webform_features_machine_name_load($machine_name);
    if (empty($node)) {
      continue;
    }
    $pipe['node'][$node->type] = $node->type;
    $export['features']['webform'][$machine_name] = $machine_name;
  }
  return $pipe;
}