function ajax_forms_test_advanced_commands_settings_with_merging_callback

Ajax callback for 'settings' but with setting overrides.

1 string reference to 'ajax_forms_test_advanced_commands_settings_with_merging_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 426
Simpletest mock module for Ajax forms testing.

Code

function ajax_forms_test_advanced_commands_settings_with_merging_callback($form, $form_state) {
  drupal_add_js(array(
    'ajax_forms_test' => array(
      'foo' => 42,
    ),
  ), 'setting');
  drupal_add_js(array(
    'ajax_forms_test' => array(
      'foo' => 9001,
    ),
  ), 'setting');
  $response = new AjaxResponse();
  return $response;
}