You are here

function ajax_example_autotextfields_callback in Examples for Developers 7

Callback for autotextfields.

Selects the piece of the form we want to use as replacement text and returns it as a form (renderable array).

Return value

array Renderable array (the textfields element)

Related topics

1 string reference to 'ajax_example_autotextfields_callback'
ajax_example_autotextfields in ajax_example/ajax_example.module
Show/hide textfields based on AJAX-enabled checkbox clicks.

File

ajax_example/ajax_example.module, line 500
AJAX Examples module file with basic examples.

Code

function ajax_example_autotextfields_callback($form, $form_state) {
  return $form['textfields'];
}