You are here

function ctools_ajax_command_scripts in Chaos Tool Suite (ctools) 6

Create a settings command for the AJAX responder.

This will add javascript files to the output. Files that have already been processed will not be processed again.

Parameters

$argument: An array of javascript files.

1 call to ctools_ajax_command_scripts()
ctools_ajax_render in includes/ajax.inc
Render a commands array into JSON and immediately hand this back to the AJAX requester.

File

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

Code

function ctools_ajax_command_scripts($argument) {
  return array(
    'command' => 'scripts',
    'argument' => $argument,
  );
}