You are here

function ctools_ajax_command_append in Chaos Tool Suite (ctools) 6

Create an append command for the AJAX responder.

This will append the HTML to the specified selector.

Parameters

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

$html: The data to use with the jquery append() function.

1 call to ctools_ajax_command_append()
ctools_context_ajax_item_add in includes/context-admin.inc
Ajax entry point to add an context

File

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

Code

function ctools_ajax_command_append($selector, $html) {
  return array(
    'command' => 'append',
    'selector' => $selector,
    'data' => $html,
  );
}