Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Course
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
I was working with the ILP project which contains two modules that I had suggested be renamed to ilp_target and ilp_concern; however, then we discovered that it chokes with /course/mod.php because the variable must be a PARAM_ALPHA which excludes the underscore (_). For consistency, it would be good if modules could have the underscore. Tablenames, blocks, function names all allow the use of the underscore so this issue caught me by surprise.
I'm filing this under course since that is where I found it but it may be more far reaching. Since Petr indicated that the issue is not trivial and that we may be able to address it in 2.0 I am initially assigning to him.
Issue Links
| This issue will help resolve: | ||||
| CONTRIB-405 | Mod tables do not work with underscores in the module names |
|
|
|
Working with the ilp project, I initially thought it would be helpful to add a prefix to the module name similar to how we do with blocks; however, I was not aware that the underscores were stripped away. We have since renamed but the hope is that using the underscore for a module name will be allowed in Moodle 2.0 to be consistent with Moodle naming conventions. In other words, since the underscore is used in tablenames, blocks, etc. it makes sense that a module should also be able to use it (IMHO). Peace - Anthony