I've got entity forms installed, and I'd like to use some db_queries when a particular entity form is submitted, as to make use of the information filled out on that entity form.

Is this possible, and which hook should I use?

1 Answer 1


If I understand your question right, you should use the following hook to capture a submission:


As described in the comments at the top of entityform.api.php:

* Entityform and Entityform type are standard entities using the Entity API module.
* The standard Entity hooks are availabe for them.
* Including
*  ...
*  hook_entityform_insert

Hope this helps


here is the sample code I used:

function mymodule_entityform_insert($entityform){

and it did get triggered as soon as I submitted an EntityForm.

  • Hi David, I just tried this hook and it did work. I updated my answer above. Let me know if this still is not clear. Commented Feb 4, 2016 at 2:02
  • the hook works for me. Commented Nov 9, 2016 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.