function workflow_access_features_export_options in Workflow 7.2
Same name and namespace in other branches
- 7 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.
Generates the options to choose from. Using $wid as key. Result is used by hook_features_export().
File
- workflow_access/
workflow_access.features.inc, line 40 - Workflow_access records are a **faux-exportable** component.
Code
function workflow_access_features_export_options() {
$workflows = array();
foreach (workflow_load_multiple() as $workflow) {
$name = $workflow
->getName();
$workflows[$name] = t('workflow access configuration for: @label', array(
'@label' => $name,
));
}
return $workflows;
}