function ajax_forms_test_lazy_load_form

7.x ajax_forms_test.module ajax_forms_test_lazy_load_form($form, &$form_state)

Form builder: Builds a form that triggers a simple AJAX callback.

3 string references to 'ajax_forms_test_lazy_load_form'
AJAXFrameworkTestCase::testLazyLoad in drupal/modules/simpletest/tests/ajax.test
Test that new JavaScript and CSS files added during an AJAX request are returned.
AJAXFrameworkTestCase::testLazyLoadOverriddenCSS in drupal/modules/simpletest/tests/ajax.test
Tests that overridden CSS files are not added during lazy load.
ajax_forms_test_menu in drupal/modules/simpletest/tests/ajax_forms_test.module
Implements hook_menu().

File

drupal/modules/simpletest/tests/ajax_forms_test.module, line 466
Simpletest mock module for Ajax forms testing.

Code

function ajax_forms_test_lazy_load_form($form, &$form_state) {
  $form['add_files'] = array(
    '#type' => 'checkbox',
    '#default_value' => FALSE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
    '#ajax' => array(
      'callback' => 'ajax_forms_test_lazy_load_form_ajax',
    ),
  );
  return $form;
}