1 layout.admin.inc | layout_settings_form_path_ajax($form, &$form_state) |
AJAX handler for layout_settings_form().
Returns updated contexts and information about path matching.
File
- core/
modules/ layout/ layout.admin.inc, line 904 - 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-path-matches', $form['path_matches_text']['#value']);
$commands[] = ajax_command_html('#layout-contexts', backdrop_render($form['context_wrapper']));
return array(
'#type' => 'ajax',
'#commands' => $commands,
);
}