function workflow_features_export in Workflow 7
Implements hook_features_export().
File
- ./
workflow.features.inc, line 21 - Integrates workflow with features.
Code
function workflow_features_export($data, &$export, $module_name = '') {
// fontyourface_default_fonts integration is provided by Features.
$export['dependencies']['features'] = 'features';
$export['dependencies']['workflow'] = 'workflow';
foreach (Workflow::getWorkflows() as $workflow) {
$name = $workflow
->getName();
if (in_array($name, $data)) {
$export['features']['workflow'][$name] = $name;
}
}
return $export;
}