Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2012 at 21:40 UTC
Updated:
14 Feb 2013 at 23:40 UTC
This module allows the user to easily rename the "Modules" menu link and nearly all text containing "Modules" in the administration interface.
It provides several name variations. It can be disabled and it uninstalls cleanly.
Project Page:
http://drupal.org/sandbox/Giovanni_Glass/1485844
Git:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/Giovanni_Glass/1485844.git
Supports Drupal 7
Depends on:
Libraries 7.x-2.x
jquery-replacetext v1.1 library
http://benalman.com/projects/jquery-replacetext-plugin/
https://github.com/cowboy/jquery-replacetext
| Comment | File | Size | Author |
|---|---|---|---|
| modules-after-rename.png | 101.04 KB | jrabeemer | |
| settings.png | 54.41 KB | jrabeemer |
Comments
Comment #1
D4Ko commentedhttp://ventral.org/pareview/httpgitdrupalorgsandboxgiovanniglass1485844git
Your not working correctly with branches to create project releases. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Comment #2
jrabeemer commentedGIT Fixed. Branch made. Cleared master.
Comment #3
D4Ko commentedA few things to improve:
http://ventral.org/pareview/httpgitdrupalorgsandboxgiovanniglass1485844g...
It should be familiar with: Coding standards
Comment #3.0
D4Ko commentedfix project link
Comment #4
patrickd commentedPlease don't change to needs work if there are only coding style issues,
most of these are suggestions and should not block deeper manual reviews.
Comment #5
jrabeemer commentedFixed all coding style issues. No errors. All pass.
Comment #5.0
jrabeemer commentedcorrect banch name
Comment #6
geertvd commentedAny reason why you're not updating the menu link name yourself?
Also that 1 query you're doing should not use * if you're only going to use 1 field
Besides that seems to work.
Comment #7
jrabeemer commented#6, Thanks for the review! I did do that in a previous version. But ultimately, I didn't want to rebuild the menu UI interface just to rename one specific menu link. There is already edit UI for it so I provide a direct link to that in the settings page which does the job IMO.
Thanks for the feedback.
Comment #8
novalnet commentedHello ,
Manual Review :
rename_modules.module :
1.If possible, don't put any HTML into t() functions, this will always make the live easier for translators.
2.do not create link markup yourself, use l() instead in function rename_modules_library() , function rename_modules_libraries_info() and also in other functions.
3.function rename_modules_help() contains $output = '';what is the need for this?you can remove this, it wont results in error it seems else please add a comment.
rename_modules_admin.inc:
Please add module/file name as prefix to the function name to avoid name clashes.
Thanks
Comment #9
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #10
jrabeemer commentedIt's not an application, it's a module. It's complete and should be approved RTBC IMO. It's a simple module and passes coder tests and documentation requirements.
Comment #11
klausiYou need to set the status to "needs review" if you want to get a review, see http://drupal.org/node/532400
With "application" i was referring to this issue, which is about you getting the git vetted user role. See also http://drupal.org/node/1011698
Comment #12
jrabeemer commentedComment #13
bhosmer commentedIt seems there is a dependency that isn't mentioned in the README:
Comment #14
jrabeemer commentedThe jquery_replacetext library dependency is stated in the INSTALL.TXT file as well as the LIBRARIES module and all the links to download.
There is also a DRUSH script to download the library by command-line as well.
Comment #15
bhosmer commentedIt might not be a bad idea to let the user know where to get the library if they do not have it after enabling the module.
Comment #16
bhosmer commentedAfter installing the needed libraries, I enabled and used the module without a hitch. It works as designed, although the spans in the message output is a little annoying and are getting filtered.
Comment #17
jrabeemer commentedThanks bhosmer for the review. Yeah, the spans are annoying but necessary to make the text replacement work.
Can you mark it RTBC?
Comment #18
bhosmer commentedI was referring to the drupal_set_message that popped up. I marked it as tested as well.
Comment #19
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #20
jthorson commentedThanks for the contribution, momendo. Sorry that this seems to have gotten lost in the pile for so long.
I've taken a look through the code, and had a few questions and suggestions.
While your info file specifies
libraries (>=2), the examples in the writing .info files documentation seem to indicate that the best practice would be to specify the .minor version as well. So I would update this to readlibraries (>=2.0).Otherwise, things look okay ... if you're able to respond to the points above (the span issue in particular), I'd be ready to promote this.
Comment #21
jthorson commentedComment #22
jrabeemer commentedThanks for the review! I made the changes you recommended with comments below.
Libraries dependency
- I removed the -dev reference in the INSTALL.txt Libraries 2.0 has been released as stable so the -dev requirement is not longer needed.
- Updated to
libraries (>=2.0)in the .info file.span class="no-touch" in your .info file
- I removed this code from the title and description. I agree that the name and description should be clean rather than be protected from replacement in the .info file.
rename_modules.drush.inc
- I removed the extraneous example comments.
http://drupalcode.org/sandbox/Giovanni_Glass/1485844.git/commitdiff/91d9...
Comment #23
jthorson commentedChanges look good. One minor nitpick:
* drush command callback. Download the jQuery Replacetext library.I'd reword this as "Downloads the jQuery Replacetext library. (Drush command callback)", so that it looks more complete and can stand on it's own as a comment. Sites such as api.drupalcontrib.org aggregate and expose these docblock comments without the associated context provided by the code ... and given the current wording/capitalization, it almost appears as if it's missing half a sentence from the line above.
Thanks for your contribution, momendo!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #24
thedavidmeister commentedUh, a little late to this but how is the functionality of this module not just a tiny subset of String Overrides http://drupal.org/project/stringoverrides?
This premise behind this module looks like code duplication to me.
Comment #25
jthorson commentedI had the same thought ... but I think there is room for the small and focused solution in addition to the larger flexible approach. We do want to prevent the creation of duplicate modules, but I don't believe in blocking duplicate 'functionality' if the two modules in question have different scopes (and arguably, different audiences).
Comment #26
jrabeemer commentedIt's not duplication. My module doesn't do sitewide string replacement. It doesn't go through t() function. It only operates in /admin/*
There are MAJOR differences.
http://drupal.org/node/1167458#comment-5752030
From Jen Lampton,
Moreover, Bojhan didn't object to the module when I talked about it in the Drupal UX IRC channel last year.
Comment #27
thedavidmeister commentedmmk
Comment #28.0
(not verified) commentedclean up of description