function workflow_features_api_alter in Workflow 7.2
Implements hook_features_api_alter().
Ensures Workflow always fires last during rebuild, to ensure that roles referenced by workflows to be loaded-in when features contain roles.
File
- ./
workflow.features.inc, line 251 - Provides Features integration for Workflow using the CRUD API.
Code
function workflow_features_api_alter(array &$components) {
// FIXME: Why is Workflow the only features provider with an uppercase component name?
$component_name = 'Workflow';
if (isset($components[$component_name])) {
$setting = $components[$component_name];
unset($components[$component_name]);
$components[$component_name] = $setting;
}
}