You are here

function configuration_confirm_delete in Configuration Management 7

Form for deleting configs.

1 string reference to 'configuration_confirm_delete'
configuration_confirm_delete_page in ./configuration.admin.inc
Page callback for deleting forms.

File

./configuration.admin.inc, line 573

Code

function configuration_confirm_delete($form, &$form_state, $component, $name) {
  module_load_include('inc', 'configuration', 'configuration.export');
  configuration_include();

  // Pass the component as an array to re-use this function
  // with the multiple stop tracking feature.
  $form['config_name']['#tree'] = TRUE;
  $form['config_name'][$component . ':' . $name] = array(
    '#type' => 'value',
    '#value' => $component . ':' . $name,
  );
  return confirm_form($form, t('Are you sure you want to stop tracking configuration %name?', array(
    '%name' => $name,
  )), 'admin/config/system/configuration', t('This action cannot be undone.'), t('Stop Tracking'), t('Cancel'), 'confirm');
}