You are here

function ctools_ajax_command_css in Chaos Tool Suite (ctools) 6

Create a css command for the AJAX responder.

This will directly add CSS to the page.

Parameters

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

$argument: An array of key: value pairs to set in the CSS for the selector.

File

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

Code

function ctools_ajax_command_css($selector, $argument) {
  return array(
    'command' => 'css',
    'selector' => $selector,
    'argument' => $argument,
  );
}