1 config.admin.inc | config_sync_form_submit(array &$form, array &$form_state) |
Submit handler for config_sync_form().
File
- core/
modules/ config/ config.admin.inc, line 113 - Admin page callbacks for the Configuration Management module.
Code
function config_sync_form_submit(array &$form, array &$form_state) {
$last_sync_time = state_get('config_sync');
if ($last_sync_time == NULL || $last_sync_time < REQUEST_TIME - 120) {
module_load_include('inc', 'config', 'config.sync');
$config_sync_batch = config_sync_batch($form_state['config_statuses']);
batch_set($config_sync_batch);
}
else {
backdrop_set_message(t('Another request may be synchronizing configuration already or a sync failed unexpectedly. Please wait a minute and try again.'), 'error');
}
return $form;
}