function ctools_ajax_command_after in Chaos Tool Suite (ctools) 6
Create an after command for the AJAX responder.
This will add the HTML after the specified selector.
Parameters
$selector: The CSS selector. This can be any selector jquery uses in $().
$html: The data to use with the jquery after() function.
File
- includes/
ajax.inc, line 225 - Utilize the CTools AJAX responder.
Code
function ctools_ajax_command_after($selector, $html) {
return array(
'command' => 'after',
'selector' => $selector,
'data' => $html,
);
}