Adds the test form to search results.
function search_embedded_form_preprocess_search_result(&$variables) { $form = drupal_get_form('search_embedded_form_form'); $variables['snippet'] .= drupal_render($form); }