Get webform submissions filtered by data value I have 2 webforms set up, one form collects the user email address and emails the user some info, the second form collects their email address again and needs to select the previous form's submitted data from the database and forward this onto a selected user.

Is there an efficient method for selecting webform data filtered by a field, rather than nid or sid, (in my case it would be an email address)?
The $filters parameter on webform_get_submissions() can be used for field filtering. The function's code loops over the filters and adds them as conditions.

foreach ($filters as $column =&gt; $value) {
  $pager_query-&gt;condition($column, $value);
}


So something like:

$old_form_submission = webform_get_submissions(array('email_field_name'=&gt; $provided_email));