Hi, I created a module for the authenticated users can send a form anonymously. Add a checkbox in the configuration of the webform for select if form is anonymous and submissions stored without user or ip. so for my module can use the limit of submissions that  provided webform...

Need that your module had a hook for check the limit of shipments ("hook_webform_submission_limit_check "), as my module would check if that user can send the form to another table.

I think this could work fine, I hope your opinion, greetings.
<code>


<?php

/ / If exist a "webform_submission_limit_check" that limit the submissions in Other use this module.
/ / if none limit use default function.

$ restriction = array ();
foreach (module_implements ('webform_submission_limit_check') as $ module) {
       $ function = $ module. '_webform_submission_limit_check';
       $ restriction [] = $ function ($ node);
     }
    
if (in_array ('true', $ restriction))
return true;

?>

</code>

Comments

diaxpro’s picture

The code go in function _webform_submission_limit_check{
After...
// Check if submission limiting is enabled.
if ($node->webform['submit_limit'] == '-1') {
return FALSE; // No check enabled.
}

/* My hook code * /

diaxpro’s picture

Ok, hook isn't necesary, i have other solution.

Kreativs’s picture

Subscribe

I have a website for a company, and made a webform for the workers to be able to give an anonymous note about improvements . I as the administrator of the site also work there and even I should not see the contents of the submissions. I just want to let the submissions go to the email. Is this what is described here being worked on ?

diaxpro’s picture

The project module is waiting to approved, in this sandbox you can see description detail. If is useful for you please comment in http://drupal.org/node/1127180

If have any question tell me. Regards!

quicksketch’s picture

The module IP Anonymize and this patch http://drupal.org/node/463798 can accomplish turly anonymous submissions but only for anonymous users (by deleting their IP from the table). Thanks for the heads-up on the new project.

@TMH: See this issue for the feature you want #290448: Only email results, don't store results on the site.

diaxpro’s picture

Hi @quicksketch, how long do I have to wait for them to pass the module? I have to do anything else? A greeting and thank you very much.

quicksketch’s picture

Hey @diaxpro: The review team is pretty small it may take them a little bit to get to it. In the mean time, make sure your code runs through Coder on the most strict mode.

diaxpro’s picture

Thx @quicksketch i made a new commit with changes of run my code in "Coder" on the most strict mode. Any more? thx so much

quicksketch’s picture

Status: Needs work » Closed (fixed)

I've weighed in #1127180: Anonymous Webform to +1 the approval of this project. Closing this issue out since I'll be tracking that issue now.