'Temp', 'description' => 'Temp', 'page callback' => 'drupal_get_form', 'page arguments' => array('tmp_form'), 'access callback' => TRUE, ); return $items; } /** * Form callback. */ function tmp_form() { $form['tmp'] = array( '#type' => 'textfield', '#ajax' => array( 'callback' => 'tmp_ajax', 'wrapper' => 'tmp-wrapper', 'method' => 'append', ), '#description' => t('Click into the above textfield, and then while it has focus, click any link on the page.'), '#suffix' => '
', ); return $form; } /** * Ajax callback. */ function tmp_ajax() { return '.'; }