For logged-in users, this module changes link-titles for all links with paths 'user' and 'user/UID' to 'Welcome USERNAME'.
For example in the core user-menu 'My Account' will be replaced with 'Welcome USERNAME'.
"Welcome @username" is translatable (/admin/config/regional/translate/translate)
There are no configuration options. Just enable the module.
-----------------
While reviewing I am especially interested if performance issues might arise. Currently all links are preprocessed by this module.
Drupal 7 Module page
http://drupal.org/sandbox/nielsdefeyter/1965436
Git
http://git.drupal.org/sandbox/nielsdefeyter/1965436.git
git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/nielsdefeyter/1965436.git welcome_username
cd welcome_username
| Comment | File | Size | Author |
|---|---|---|---|
| welcome-username.jpg | 1.57 KB | ndf |
Comments
Comment #1
PA robot commentedProject 1: http://drupal.org/node/1965468
Project 2: http://drupal.org/node/1710222
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxnielsdefeyter1965436git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
bechtold commentedHi nielsdefeyter,
it seems almost everyone starting has the same error of having a master branch :-) I had it as well...
Please remove it and set 7.x-1.x as default branch.
To be able to jugde your coding skills and understanding of Drupal, your coding style and security 120 lines of code is the minimum of code needed at the moment.
Your module has 17 lines of actual code and only one function/hook, how are we supposed to say anything about your coding style?
In your .info and readme.txt you are not sticking to the 80 characters rule.
I guess your module doesn't do much, that's why your module page and readme are so short...
Other than that I think it truly is a nice snippet, but not more.
I would copy that into a helper module or the theme, since enabling a lot of modules is slowing Drupal down.
In my opinion this module is too small to be a full grown Module.
If you added more functionality like an admin form to set up what the link is going to be, it would be better.
Maybe go even more abstract and also give an option on the selection rules.
E.g. change other links.
Cheers
bechtold
Comment #4
ndf commentedHi bechtold,
This module is almost a snippet. I submitted it because it's a snippet a lot of people ask for.
About adding functionality.
Indeed it would be functional if you can change the verb and be able to choose where (specific menu or pages) this module will be active.
That is also interesting for my coding skills.
Ok, I'll do that. I put this issue back on 'needs review' when I finished it.
Comment #5
Matters commentedDrupal Coder said me that you have a problem with yours files.
welcome_username.module
welcome_username.info
README.txt
You can also watch review your module on http://ventral.org/pareview/httpgitdrupalorgsandboxnielsdefeyter1965436g...
Please repair your code according to Drupal coding standards.
Comment #6
sreynen commentedComment #7
ndf commentedClosing due to not being a good module. Feel free to reopen if you see future in this application.
Comment #7.0
ndf commentedbetter module description