You are here

function workbench_moderation_states_features_export_options in Workbench Moderation 7.3

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

Implements COMPONENT_features_export_options().

Inform features about the available states in the database.

File

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

Code

function workbench_moderation_states_features_export_options() {
  $states = db_select('workbench_moderation_states', 'states')
    ->fields('states', array(
    'name',
    'name',
  ))
    ->execute()
    ->fetchAllKeyed();
  return $states;
}