You are here

function ctools_ajax_command_changed in Chaos Tool Suite (ctools) 6

Create a changed command for the AJAX responder.

This will mark an item as 'changed'.

Parameters

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

$star: An optional CSS selector which must be inside $selector. If specified, a star will be appended.

2 calls to ctools_ajax_command_changed()
ctools_context_ajax_item_add in includes/context-admin.inc
Ajax entry point to add an context
ctools_context_ajax_item_edit in includes/context-admin.inc
Ajax entry point to edit an item

File

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

Code

function ctools_ajax_command_changed($selector, $star = '') {
  return array(
    'command' => 'changed',
    'selector' => $selector,
    'star' => $star,
  );
}