1 search_embedded_form.module search_embedded_form_form_submit($form, &$form_state)

Submit handler for search_embedded_form_form().

File

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

Code

function search_embedded_form_form_submit($form, &$form_state) {
  $config = config('search.settings');
  $submit_count = (int) $config->get('search_embedded_form_submitted');
  $config->set('search_embedded_form_submitted', $submit_count + 1)->save();
  backdrop_set_message(t('Test form was submitted'));
}