function search_api_test_insert_item_submit in Search API 7
Submit callback for search_api_test_insert_item().
File
- tests/
search_api_test.module, line 73 - Test functions and classes for testing the Search API.
Code
function search_api_test_insert_item_submit(array $form, array &$form_state) {
form_state_values_clean($form_state);
db_insert('search_api_test')
->fields(array_filter($form_state['values']))
->execute();
module_invoke_all('entity_insert', search_api_test_load($form_state['values']['id']), 'search_api_test');
}