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

AJAX handler for layout_settings_form() the returns updated contexts.

File

modules/layout/layout.admin.inc, line 679
Admin page callbacks for the 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,
  );
}