How to create custom access permissions for entity form I am using Entityforms on my site. I want to be able to create custom access permissions, which would prevent users of role 'member' from submitting more than 2 submissions. I am fine doing this programatically, but I haven't yet found a good way of doing this.

I tried using the hook_entityform_access_alter, but I dont see where its called. I tried printing some dpms and they never showed up anywhere:

/**
* Implements hook_entityform_access_alter().
*/
function wai_scholarship_access_entityform_access_alter(&amp;$access, $op, $context) {
 dpm($access);
 dpm($op);
 dpm($context);
}
The reasons the dpm()'s in your hook are not showing is that this hook function is not being called when you access the form as an administrator (administrators bypass all access restrictions). I tested this for authenticated users, and it does work. The hook is called as expected. (To test it yourself be sure to allow devel permission to the authenticated user so that you can see the output of the dpm).  The hook is being called when a user accesses the form.