You are here

function workbench_scheduler_features_rebuild in Workbench Scheduler 7

Same name and namespace in other branches
  1. 7.2 workbench_scheduler.features.inc \workbench_scheduler_features_rebuild()

Implements COMPONENT_features_rebuild().

Store each exported schedule in the database.

2 calls to workbench_scheduler_features_rebuild()
workbench_scheduler_features_enable_feature in ./workbench_scheduler.features.inc
Implements COMPONENT_features_enable_feature().
workbench_scheduler_features_revert in ./workbench_scheduler.features.inc
Implements COMPONENT_features_revert().

File

./workbench_scheduler.features.inc, line 90
Features file for the workbench_scheduler module.

Code

function workbench_scheduler_features_rebuild($module) {
  if ($defaults = features_get_default('workbench_scheduler', $module)) {
    foreach ($defaults as $schedule) {
      workbench_scheduler_save_schedule($schedule['name'], $schedule);
    }
  }
  drupal_static_reset('workbench_scheduler_load_schedules');
}