I think it's a more proper name. For example:
<?php
// $Id: rules_admin.module,v 1.1.2.1 2009/03/28 21:54:18 fago Exp $
/**
* @file Rules administration UI
...
This could free up the name space for alternative Rules administration method.
I think it's a more proper name. For example:
<?php
// $Id: rules_admin.module,v 1.1.2.1 2009/03/28 21:54:18 fago Exp $
/**
* @file Rules administration UI
...
This could free up the name space for alternative Rules administration method.
Comments
Comment #1
fagoThis would make it necessary to change all function names to obey the namespace - but I prefer to keep them ;)
I'm sure there are enough names left though.
Comment #2
mitchell commented@fago: This idea seems even better than the last, but I'm mainly throwing this naming schema out, because naming the included UI rules_admin doesn't seem to initiate the paradigm of "many UI's."
Some other ideas of what this might look like in the future:
How do those names look?
Comment #3
fagoNames of modules not shipping with "rules", shouldn't start their name with the same prefix as rules. So instead it should be "ubercart_rules_ui".
Comment #4
traviscarden commented@fago: I'm reopening this issue because, though the net effect of my proposal is the same, both my proposal and my argument are slightly different from @opensanta's. But if my case doesn't prevail with you—I'm not trying to be a bother—just close it again. Thanks.
There seems to be an emerging (if unofficial) trend to name UI sub-modules
modulename_ui. For example,views_uiandimagecache_ui. The choice probably used to be of little consequence, but then Drush came along, and now it's common to enable modules from the command line using their machine readable name. If all modules followed the afore-mentioned convention, site builders wouldn't have to remember individual variants (e.g. "Was itrules_uiorrules_admin?"). Consistent application of such patterns, I think, will necessarily reduce programmer error by creating (and making good on) a sense that things are just "like you'd expect them to be".I recognize the proposed change would involve changing every function name, and I respect the tedium of that. I would be willing to write a patch if I knew it were welcome.
Comment #5
mitchell commentedComment #6
fago#4 makes sense, however the rules_ui namespace is in d7 already used for providing UI components - that's different to the actual rules_admin module, which just makes use of that. Therefore I think the current naming reflects our situation best.