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

AJAX handler for layout_settings_form() the returns updated contexts.

File

core/modules/layout/layout.admin.inc, line 595
Administrative functions for Layout module.

Code

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