function search_embedded_form_preprocess_search_result
7.x search_embedded_form.module | search_embedded_form_preprocess_search_result(&$variables) |
Adds the test form to search results.
File
- drupal-7.x/
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);
}