function ajax_forms_test_advanced_commands_data_callback

Ajax form callback: Selects 'data'.

1 string reference to 'ajax_forms_test_advanced_commands_data_callback'
ajax_forms_test_ajax_commands_form in drupal/core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module
Form constructor for the Ajax Command display form.

File

drupal/core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module, line 343
Simpletest mock module for Ajax forms testing.

Code

function ajax_forms_test_advanced_commands_data_callback($form, $form_state) {
  $selector = '#data_div';
  $response = new AjaxResponse();
  $response
    ->addCommand(new Ajax\DataCommand($selector, 'testkey', 'testvalue'));
  return $response;
}