You are here

function configuration_ui_sync_form in Configuration Management 7.2

Menu Callback Form.

1 string reference to 'configuration_ui_sync_form'
configuration_ui_menu in ui/configuration_ui.module
Implements hook_menu().

File

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

Code

function configuration_ui_sync_form($form, &$form_state) {
  $form['configuration_ops'] = array(
    '#type' => 'fieldset',
    '#title' => t('Configuration Operations'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    '#description' => '<p>' . t('Updates the tracked configurations using the configurations defined in tracked.inc file. You should click on this button every time you update the DataStore and want to see the changes materialized in your site.') . '<p>',
  );
  $form['configuration_ops']['sync_configurations'] = array(
    '#type' => 'submit',
    '#value' => t('Synchronize configurations'),
    '#submit' => array(
      'configuration_sync_configurations_submit',
    ),
  );
  $form['configuration_ops']['include_dependencies'] = array(
    '#type' => 'checkbox',
    '#title' => t('Process component dependencies.'),
    '#default_value' => TRUE,
  );
  $form['configuration_ops']['include_optionals'] = array(
    '#type' => 'checkbox',
    '#title' => t('Process component optionals.'),
    '#default_value' => TRUE,
  );
  $form['configuration_ops']['preserve_tracked'] = array(
    '#type' => 'checkbox',
    '#title' => t('Preserve tracked configurations.'),
    '#description' => '<p>' . t('If checked, all the configurations current being tracked will still be tracked even if they are not in listed in the tracked.inc file of your DataStore. If not checked, those configurations that are not listed in the configuration.inc file and are currently being tracked will be automatically untracked.') . '<p>',
    '#default_value' => TRUE,
  );
  return $form;
}