Get Webform submission count using custom module I would like to get the submission count of a user using custom code in my module. Which variable stores this? 

I tried to do dsm on $node and there was an array for webform inside the $node object but in that array I couldn't find the submission count for the current user. But then, $node shouldn't contain that value, of course. So how do I get this value?
Okay. I figured it out. 

There is a function webform_get_submission_count in the webmodule includes file that does. Just added these lines and got it my count. Sweet and simple. 

module_load_include('inc', 'webform', 'includes/webform.submissions');
$mysubmission_count = webform_get_submission_count($node-&gt;nid, $user-&gt;uid);