You are here

function workbench_moderation_transitions_features_export_options in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 workbench_moderation.features.inc \workbench_moderation_transitions_features_export_options()

Implements COMPONENT_features_export_options().

Inform features about the available transitions in the database.

File

./workbench_moderation.features.inc, line 88
Features file for the workbench_moderation module.

Code

function workbench_moderation_transitions_features_export_options() {
  $options = array();
  foreach (workbench_moderation_transitions() as $transition) {
    $options[$transition->from_name . ':' . $transition->to_name] = $transition->from_name . ' -> ' . $transition->to_name;
  }
  return $options;
}