A closed survey simply does not show the form anymore.
This patch applies the method that the Poll module uses to close surveys. There are two added settings - Active/Closed and runtime.
Even though this patch is against HEAD, I have only tested the code against a previous version that was patched to use the survey module with 4.7. Nothing related to the runtime was of use to me so was not tested. Only brought over since the Poll module has this too.
If there are existing surveys there will be a couple of mysql commands required:
ALTER TABLE survey ADD runtime int(10) NOT NULL default '0';
ALTER TABLE survey ADD active int(2) unsigned NOT NULL default '0';
update survey set active = '1';
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | surveyclose.20060629-2.patch.txt | 3.59 KB | joestewart |
| #1 | surveyclose.20060629-1.patch.txt | 3.59 KB | joestewart |
| surveyclose.20060629.patch.txt | 3.59 KB | joestewart |
Comments
Comment #1
joestewart commentedreplacement patch
mised a closing paren when changing patch for HEAD.
Comment #2
joestewart commentedoops - didn't mean to change the title.
Comment #3
joestewart commented_update portion had fields out of order. Maybe last patch today :) Tested this against HEAD.
Comment #4
quicksketchSurvey module is no longer being maintained, use Webform module instead.
---Closing down issue queue of survey module---