public function WorkflowFeaturesController::export in Workflow 7.2
Generates the result for hook_features_export().
Overrides EntityDefaultFeaturesController::export
File
- ./
workflow.features.inc, line 25 - Provides Features integration for Workflow using the CRUD API.
Class
- WorkflowFeaturesController
- Default controller handling features integration.
Code
public function export($data, &$export, $module_name = '') {
$pipe = parent::export($data, $export, $module_name);
foreach ($data as $workflow_name) {
if ($workflow = workflow_load_by_name($workflow_name)) {
// Add dependency on workflow_node.
if (count($workflow
->getTypeMap())) {
$export['dependencies']['workflownode'] = 'workflownode';
}
}
}
return $pipe;
}