You are here

function ctools_ajax_command_settings in Chaos Tool Suite (ctools) 6

Create a settings command for the AJAX responder.

This will extend Drupal.settings with the given array.

Parameters

$argument: An array of key: value pairs to add to the settings.

3 calls to ctools_ajax_command_settings()
ctools_ajax_render in includes/ajax.inc
Render a commands array into JSON and immediately hand this back to the AJAX requester.
ctools_modal_form_render in includes/modal.inc
Render a form into an AJAX display.
page_manager_edit_page_operation in page_manager/page_manager.admin.inc
Entry point to edit a single operation for a page.

File

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

Code

function ctools_ajax_command_settings($argument) {
  return array(
    'command' => 'settings',
    'argument' => $argument,
  );
}