function defaultconfig_component_rebuild_form in Default config 7
Rebuild confirmation form.
1 string reference to 'defaultconfig_component_rebuild_form'
- defaultconfig_menu in ./
defaultconfig.module  - Implements hook_menu().
 
File
- ./
defaultconfig.admin.inc, line 58  - Main administration page for default config.
 
Code
function defaultconfig_component_rebuild_form($form, &$form_state, $module, $name) {
  $components = defaultconfig_get_components();
  if (!module_exists($module) || !isset($components[$name])) {
    drupal_not_found();
    return '';
  }
  $component = $components[$name];
  $form_state['component'] = $component;
  $form_state['module'] = $module;
  return confirm_form($form, t('Are you sure you want to rebuild the defaults in %module for %component?', array(
    '%module' => $module,
    '%component' => $component['label'],
  )), 'admin/structure/defaultconfig', t('Any changes you have made might be undone.'));
}