I wrote a new module 'quizreg'. This module allows administrators to choose a quiz to perform anonymous users if they want to register on the website. Quizzes which may select administrators should be created by using module Quiz. Also I will maintain my module.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | quizreg.zip | 4.86 KB | GDI |
| #8 | quizreg.zip | 4.85 KB | GDI |
| #5 | quizreg.zip | 4.86 KB | GDI |
| #1 | quizreg.zip | 5.01 KB | GDI |
Comments
Comment #1
GDI commentedQuizreg module is required Quiz module installed. Quizreg is using existent quizes to use one of they for testing users before registering on website. It can be used to limit the number of users based on their knowledge or it can be used as a spam control.
Comment #2
avpadernoRemember to change the status, when you upload new code.
Comment #3
GDI commentedI`m sorry. :)
Comment #4
avpadernoSee the Drupal coding standards to understand how a module code should be written.
In particular, see the part about the namespace respect, and how the code should be formatted.
Comment #5
GDI commentedModule was checked and fixed for drupal coding standards. See in attachment.
Comment #6
avpadernoComment #7
avpadernoThe coding standards report also how to name constants, Drupal variables, and functions.
Comment #8
GDI commentedI added some quotes in variable_get() function arguments. But I didn't found any problems with name constants and functions. Could you give me some examples of my faults?
Comment #9
GDI commentedComment #10
dave reidThings like:
Are much more useful to users as variables and admin options instead of constants. Plus, they aren't prefixed with your module name, so they could technically collide with other constants.
Comment #11
avpadernoThe same is true for functions, which should have the name of the module prefixed to their names (using the right name for functions is called namespace respect).
I am changing the status because the reported points have not been resolved.
Comment #12
GDI commentedI fixed function and constants names.
These constants
are using for storing default values in quizreg settings form. I also added comments to them.
Comment #13
dave reidComment #14
avpadernoComment #17
avpaderno