[drupal-devel] CCK Nomenclature
jchaffer at structureinteractive.com
Sun Feb 27 14:36:52 UTC 2005
On Feb 27, 2005, at 1:04 PM, Gabor Hojtsy wrote:
>>>>> Suppose node.module handles all of the content types defined by
>>>>> node modules as today, and a new module is added that handles the
>>>>> administrator-defined content types. What should that module be
>>>> I like the name 'content.module' or 'content-builder.module'..
>>> Note that it is not possible to have a dash in a module name, since
>>> the module name should be included in the function names, and PHP
>>> does not allow for a dash to be in the function name. This is why
>>> quite a few modules use underscore.
>> Well, I know we have some guidelines about that.. But imo i think
>> 'content-builder.module' is way much better than
>> 'content_builder.module'.. Inside the code we should prefix the
>> function offcourse with the '_' form, but in the filename we should
>> use '-'.. it's nicer and reads easier for non-coders..
> We need a patch which converts dashes to underscores for function
> names then.
But even underscores have namespace issues, which has been noted
before. A module called foo_bar.module and a module called foo.module
can easily have functions with the same names.
More information about the drupal-devel