1 config.admin.inc | config_export_single_form_update_type($form, &$form_state) |
Handles switching the configuration type selector.
File
- core/
modules/ config/ config.admin.inc, line 363 - Admin page callbacks for the Configuration Management module.
Code
function config_export_single_form_update_type($form, &$form_state) {
// Empty out the configuration value field.
$form['export']['#value'] = '';
$form['export']['#rows'] = 12;
// Because we need to replace both the configuration name select and the
// textarea, this requires using AJAX commands instead of a simple return.
$commands = array();
$commands[] = ajax_command_replace('#edit-config-type-wrapper', backdrop_render($form['config_name']));
$commands[] = ajax_command_replace('#edit-export-wrapper', backdrop_render($form['export']));
$commands[] = ajax_command_prepend(NULL, theme('status_messages'));
return array(
'#type' => 'ajax',
'#commands' => $commands,
);
}