You are here

function workbench_moderation_states_features_rebuild in Workbench Moderation 7.3

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

Implements COMPONENT_features_rebuild().

Store each exported transition in the database.

2 calls to workbench_moderation_states_features_rebuild()
workbench_moderation_states_features_enable_feature in ./workbench_moderation.features.inc
Implements COMPONENT_features_enable_feature().
workbench_moderation_states_features_revert in ./workbench_moderation.features.inc
Implements COMPONENT_features_revert().

File

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

Code

function workbench_moderation_states_features_rebuild($module) {
  if ($defaults = features_get_default('workbench_moderation_states', $module)) {
    foreach ($defaults as $state) {
      workbench_moderation_state_save((object) $state);
    }
    drupal_static_reset('workbench_moderation_states');
  }
}