function search_embedded_form_preprocess_search_result

cis7 search_embedded_form.module search_embedded_form_preprocess_search_result(&$variables)
cle7 search_embedded_form.module search_embedded_form_preprocess_search_result(&$variables)
elmsmedia7 search_embedded_form.module search_embedded_form_preprocess_search_result(&$variables)
icor7 search_embedded_form.module search_embedded_form_preprocess_search_result(&$variables)
meedjum_blog7 search_embedded_form.module search_embedded_form_preprocess_search_result(&$variables)
mooc7 search_embedded_form.module search_embedded_form_preprocess_search_result(&$variables)

Adds the test form to search results.

File

modules/search/tests/search_embedded_form.module, line 67
Test module implementing a form that can be embedded in search results.

Code

function search_embedded_form_preprocess_search_result(&$variables) {
  $form = drupal_get_form('search_embedded_form_form');
  $variables['snippet'] .= drupal_render($form);
}