You are here

function views_ajax_command_trigger_preview in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 7.3 includes/ajax.inc \views_ajax_command_trigger_preview()

Trigger the Views live preview.

Return value

An array suitable for use with the ajax_render() function.

Related topics

1 call to views_ajax_command_trigger_preview()
views_ui_ajax_form in views_ui/admin.inc
Generic entry point to handle forms.

File

includes/ajax.inc, line 194
Handles the server side AJAX interactions of Views.

Code

function views_ajax_command_trigger_preview() {
  $command = array(
    'command' => 'viewsTriggerPreview',
  );
  return $command;
}