function wysiwyg_test_ajax_form in Wysiwyg 7.2
Form constructor for an ajaxified form lazy-loading a textarea.
1 string reference to 'wysiwyg_test_ajax_form'
- wysiwyg_test_menu in tests/
wysiwyg_test.module - Implements hook_menu().
File
- tests/
wysiwyg_test.module, line 24 - Testing functionality for Wysiwyg module.
Code
function wysiwyg_test_ajax_form($form, &$form_state) {
$form['enable'] = array(
'#type' => 'checkbox',
'#title' => 'Load textarea',
'#ajax' => array(
'callback' => 'wysiwyg_test_ajax_form_callback',
'wrapper' => 'ajax-wrapper',
),
);
$form['wrapper'] = array(
'#type' => 'container',
'#id' => 'ajax-wrapper',
);
return $form;
}