You are here

function ctools_ajax_command_remove in Chaos Tool Suite (ctools) 6

Create a remove command for the AJAX responder.

This will remove the specified selector and everything within it.

Parameters

$selector: The CSS selector. This can be any selector jquery uses in $().

1 call to ctools_ajax_command_remove()
ctools_ajax_sample_tablenix in ctools_ajax_sample/ctools_ajax_sample.module
Nix a row from a table and restripe.

File

includes/ajax.inc, line 259
Utilize the CTools AJAX responder.

Code

function ctools_ajax_command_remove($selector) {
  return array(
    'command' => 'remove',
    'selector' => $selector,
  );
}