You are here

function ajax_facets_send_commands in Ajax facets 7.3

Sends commands for the request.

1 call to ajax_facets_send_commands()
ajax_facets_refresh_facets_content in ./ajax_facets.pages.inc
Callback to update facets content by AJAX.

File

./ajax_facets.pages.inc, line 167
User page callbacks for the ajax_facets module.

Code

function ajax_facets_send_commands($commands, $view = NULL) {

  // Allow other modules to add, change or delete commands.
  drupal_alter('ajax_facets_data', $commands, $view);
  drupal_add_http_header('Content-Type', 'application/json; charset=utf-8');
  print ajax_render($commands);
  drupal_exit();
}