function workflow_access_features_export_options in Workflow 7
Same name and namespace in other branches
- 7.2 workflow_access/workflow_access.features.inc \workflow_access_features_export_options()
Implements hook_features_export_options().
Provide a list of all workflows as selectable Feature components.
We'll make all workflow access records related to the selected workflows available for export.
File
- workflow_access/
workflow_access.features.inc, line 39
Code
function workflow_access_features_export_options() {
$workflows = array();
foreach (Workflow::getWorkflows() as $workflow) {
$workflows[$workflow
->getName()] = t('workflow access configuration for: ') . $workflow
->getName();
}
return $workflows;
}