You are here

function configuration_ui_stop_tracking_form_submit in Configuration Management 7.2

Submit handler for stop tracking configs.

1 string reference to 'configuration_ui_stop_tracking_form_submit'
configuration_ui_tracking_form in ui/configuration_ui.admin.inc

File

ui/configuration_ui.admin.inc, line 403
User interface functions for Configuration Management.

Code

function configuration_ui_stop_tracking_form_submit($form, &$form_state) {
  $args = configuration_ui_get_form_components($form, $form_state);
  $stop_tracking_dependencies = $form_state['values']['include_dependencies'];
  $stop_tracking_optionals = $form_state['values']['include_optionals'];
  $result = ConfigurationManagement::stopTracking($args, $stop_tracking_dependencies, $stop_tracking_optionals);
  $configurations = $result
    ->getInfo('untracked');
  if (!empty($configurations)) {
    foreach ($configurations as $configuration) {
      drupal_set_message(t('Untracked @configuration', array(
        '@configuration' => $configuration,
      )));
    }
  }
}