You are here

function configuration_ui_start_tracking_form_submit in Configuration Management 7.2

Submit handler for start tracking configs.

1 string reference to 'configuration_ui_start_tracking_form_submit'
configuration_ui_notracking_form in ui/configuration_ui.admin.inc
Menu Callback Form.

File

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

Code

function configuration_ui_start_tracking_form_submit($form, &$form_state) {
  $args = configuration_ui_get_form_components($form, $form_state);
  $start_tracking_dependencies = $form_state['values']['include_dependencies'];
  $start_tracking_optionals = $form_state['values']['include_optionals'];
  $result = ConfigurationManagement::startTracking($args, $start_tracking_dependencies, $start_tracking_optionals);
  $configurations = $result
    ->getInfo('exported');
  if (!empty($configurations)) {
    foreach ($configurations as $configuration) {
      drupal_set_message(t('Tracking @configuration.', array(
        '@configuration' => $configuration,
      )));
    }
  }
}