Important module system changes
Please note that the module system has now been changed in the following way:
Dependencies and Exclusions are now written in the format “modulefilename”.
This is the name that the file name starts with for the module, e.g. for unix_users.mod.phps the dependency to name would be “unix_users”.
Please note the underscore not hyphen.
This has been changed in all places in web-cp which deal with dependencies. The is_registered and is_enabled functions now expect to receive a file name rather than a module name. If you put “unix-users” as a dependancy then there is no chance of the system recognising that you want unix_users to be installed.
This has been noted on the wiki and forums also.
Please also note that i accidently committed these changes without adding a log note in cvs… i don’t know if its possible to add a log note without changing all those files that were modified. (A few modules referenced unix-users when they need to talk about unix_users since it is the actual name of the module file)
Just to make sure people understand this, the dependencies system does NOT use the Module Name (e.g. ‘Backups’, ‘Apache’, ‘Unix Users’, ‘NSS-MySQL’), for obvious reasons it uses the module part of the filename of the module (e.g. unix_users, nss_mysql, bw_quota) So if you want to list NSS-MySQL as a dependency then you would look at the file name of the NSS-MySQL module, realise it is nss_mysql and then specify “nss_mysql” as the dependency.
EdG