function ctools_ajax_command_prepend in Chaos Tool Suite (ctools) 6
Create a prepend command for the AJAX responder.
This will prepend 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 prepend() function.
File
- includes/
ajax.inc, line 189 - Utilize the CTools AJAX responder.
Code
function ctools_ajax_command_prepend($selector, $html) {
return array(
'command' => 'prepend',
'selector' => $selector,
'data' => $html,
);
}