Jacob,
Nice little module. Thanks! Attached is a patch with some suggestions:
- fix style to pass coder review, most notably spaces before parenthesis and no spaces before and after quoted strings .' '.
- Add $Id$ to .module
- Remove package from .info - this is reserved for modules that actually ship together, unless the developers of both modules agree otherwise
- use $Name$ in .info version - actually, I'm not sure that this is really good or desirable, but most people do it. The project.module packaging system replaces this when creating the tar files, so the name gets replaced only when checked out using CVS.
- Removed extraneous html formatting in hook_help - did you really want this for some reason?
- Removed empty watchdog line in adminrole_update_perms - if you want to write a watchdog entry, that's fine, but please fill in the module name and use more descriptive text
- Remove "continue" statement in adminrole_update_perms - since there were no statements below this, it is unnecessary
- Remove array merging of drupal_set_message - I'm not sure why you think you needed this. I looked at the drupal_set_message code and it appeared to append messages already. I also tested it and this does indeed seem to be how it works.
- Simplify logic in admin_form_alter
| Comment | File | Size | Author |
|---|---|---|---|
| adminrole.patch | 4.8 KB | douggreen |
Comments
Comment #1
douggreen commentedI also removed adminrole_system_modules_form_submit. Was this for debugging only?
Comment #2
JacobSingh commentedThanks doug, I've released it with these changes.
Comment #3
JacobSingh commentedComment #4
(not verified) commented