I have created a courses module that enables administrators to maintain a course descriptions listing and users to search courses by term and year. Terms may be created since some colleges use semesters and some use quarters. I have several other modules, however, I do not feel that they meet Drupal's CVS requirements as they provide functionality that is only useful to The Ohio State University Community. I have modified my courses module in an attempt to make it as universally useful for all colleges and universities. All of the modules I develop are verified using Coder with "minor (most)" and "Internationalization" selected. I currently host my modules at GitHub, I have read many times that hosting code outside of Drupal.org hurts Drupal. This module is my attempt to at least bring some of my efforts under Drupal.org. If you feel that any of my other modules would be appropriate to host on Drupal.org please let me know, I would be more than happy to add them.
All of my modules may be found here:
http://github.com/mitchellshelton
The specific module I would like to contribute may be found here:
http://github.com/mitchellshelton/courses
An older, and not so clean, but functionally the same, version of this module can be seen in production here:
Thank you for your time and consideration. I look forward to getting more involved in the Drupal community!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | courses.tar_.gz | 9.25 KB | mitchellshelton |
| #1 | courses.zip | 52.06 KB | mitchellshelton |
Comments
Comment #1
mitchellshelton commentedI have attached the courses module for review.
Thank you,
-Mitchell
Comment #2
avpadernoHello, and thanks for applying for a CVS account.
hook_uninstall()is not removing the Drupal variables defined, and used by the module.If you are always loading those files, then it is better to merge them with the module file.
Comment #3
mitchellshelton commentedThank you for taking the time to look at my module. I have attempted to address the issues you brought up:
1. Is this just a helpful link, or was there something specific I seem to be missing? My module successfully passes coder, but that is mostly syntax, is there something more generic I'm missing.
2. I have updated hook_uninstall as requested. As far as I know only variables using get_variable or set_variable need to be deleted here, is this correct?
3. I have merged these into the .module file as requested. My intention was to keep things clean, perhaps I was just including them incorrectly? Should I have been using require_once() here? Is it generally frowned upon to break apart the .module file? I have heard conflicting sides to this issue and am not sure if it is a matter of personal preference, or adopted as a standard.
Thank you again for your time.
Comment #4
mitchellshelton commentedAttached is the updated version with the changes you requested.
It can also be reviewed here under the master branch:
http://github.com/mitchellshelton/courses
Thank you,
-Mitchell
Comment #5
mitchellshelton commentedForgot to change the status back to needs review.
Comment #6
mitchellshelton commentedIs there something else I need to do here? Or are folks just busy? Is there anything I can do to help?
Comment #7
avpadernot().CSS files should be added in the implementation of
hook_init(), or more specifically, on the pages where they are required. The module is adding its own CSS files even for pages handled by other modules, and this could cause compatibility problems.Most of the permissions are already implemented from node.module, which defines some permissions for any content type defined from third-party modules.
The hook
hook_admin()doesn't exist in Drupal 6;course_admin()is simply a form builder.Those comments are not standard, in Drupal.
Using the correct
t()-placeholder, there would not be the need to callcheck_plain().The word term has a particular meaning, in Drupal; it would be better to call the content type differently, to avoid to confuse the users.
There is no need to call
check_plain(), because that is already done byt()for sucht()-placeholders.In this case, to use
t()is not necessary; a translator cannot translate a string made of just a placeholder.The first argument of
t()is a literal string, not a concatenation of strings. The script used to create the translation template is not able to handle any dynamic value, even in the case of code similar tot($variable); this means that if the argument of the function is not a literal string, it will not appear in the translation template.Form submission callbacks don't use
drupal_goto().Why isn't the code using
#description?#prefixis not used to add a description to the form field.The string
'--'doesn't change when translated to a different language; that is like to translate an HTML tag, or decimal digits.Comment #9
avpadernoI am closing this application due to lack of replies.
Comment #10
avpadernoPlease read the following links as this is very important information about CVS applications.