You are here

function msnf_step_features_rebuild in Multistep Nodeform 6

Implementation of hook_features_rebuild().

1 call to msnf_step_features_rebuild()
msnf_step_features_revert in includes/msnf.features.inc
Implementation of hook_features_revert().

File

includes/msnf.features.inc, line 92
Features integration for "Multistep Nodeform".

Code

function msnf_step_features_rebuild($module) {

  // Load necessary functions for form steps.
  module_load_include('inc', 'msnf', 'includes/msnf.steps');
  $default_steps = module_invoke($module, 'msnf_step_default_steps');

  // Loop over the items we need to recreate.
  foreach ($default_steps as $type_name => $type) {
    foreach ($type as $step_name => $step) {

      // Save step.
      $saved = msnf_save_step($type_name, $step);
    }
  }
  cache_clear_all('msnf_step_data:', 'cache', TRUE);
}