1 layout.admin.inc layout_settings_form_add_additional_paths_ajax($form, &$form_state)

AJAX handler for layout_settings_form().

Returns updated contexts and additional path form data when adding or removing additional paths.

File

core/modules/layout/layout.admin.inc, line 1156
Admin page callbacks for the Layout module.

Code

function layout_settings_form_add_additional_paths_ajax($form, &$form_state) {
  $commands[] = ajax_command_remove('.l-messages');
  $commands[] = ajax_command_html('#layout-messages', theme('status_messages'));
  $commands[] = ajax_command_html('#layout-additional-paths-wrapper', backdrop_render($form['additional_paths_wrapper']));
  $commands[] = ajax_command_html('#layout-contexts', backdrop_render($form['context_wrapper']));
  return array(
    '#type' => 'ajax',
    '#commands' => $commands,
  );
}