You are here

function ctools_ajax_command_submit in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/ajax.inc \ctools_ajax_command_submit()

Submit a form.

This is useful for submitting a parent form after a child form has finished processing in a modal overlay.

Parameters

$selector: The CSS selector to identify the form for submission. This can be any selector jquery uses in $().

File

includes/ajax.inc, line 144
Set this so we can tell that the file has been included at some point.

Code

function ctools_ajax_command_submit($selector) {
  ctools_add_js('ajax-responder');
  return array(
    'command' => 'submit',
    'selector' => $selector,
  );
}