This module provides a way for admins to differentiate environments by assigning colors to the administration menu. It has a dependency on masquerade and admin_menu module to embed a form in the menu so the admin can easily switch between users whilest always keeping the environmental administration menu. This way there is no more wasting time logging in and out when testing multiple roles and you always have an idea of what environment you are on.
Sandbox page:
https://drupal.org/sandbox/Mywebmaster/1871384
Git clone command:
git clone http://git.drupal.org/sandbox/Mywebmaster/1871384.git environmental_administration_menu
The version is only 7.x
I wish to make this project full fledged to make my first return to the community and get some help cleaning up some of my code since I'm pretty much self thaught. I think a lot of people might be interested in this module so getting this out of sandbox would give me a big boost in getting the module of the ground.
I'm still in the midst of adding new features (icon upload, live paint, etc...) so it's definately still a development version. But it is pretty stable since we're using it in our production workflow environments.
During development and theming I've focused on the development version of admin_menu and using the toolbar look. So if you want to test the module I suggest you take the dev version and enable the toolbar look. :)
Comments
Comment #1
alexverb commentedNeeds review.
Comment #2
mikespence commentedHi Alex,
It's great that you want to start contributing back! This is a great idea for a module, can see that being useful for myself and others.
A helpful thing to do is to run your code through a Drupal code checker. Your result is here:
http://ventral.org/pareview/httpgitdrupalorgsandboxmywebmaster1871384git
This will help you to tie up all the little bits a pieces that are required by the Drupal coding standards.
It's also a good idea to post the link for people to download your module in the description at the top of this page. Yours is:
git clone http://git.drupal.org/sandbox/Mywebmaster/1871384.git environmental_administration_menuHope that helps get the ball rolling!
Mike
Comment #3
alexverb commentedI put the clone command up in the description and fixed all pareview code style errors.
http://ventral.org/node/183240/revisions/view/253621/254537
Comment #4
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 put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)
Comment #5
vlad.pavlovic commentedAutomatic review: passed (as stated above).
Manual Review:
There is a warning generated by admin_menu_environmental_admin_menu_output_alter when module first enabled.
Warning: Invalid argument supplied for foreach() in admin_menu_environmental_admin_menu_output_alter().
The configuration form is not able to find the 'admin_menu_environmental_colors_form' theme key.
Since you constantly do:
You might want to wrap that in a function and call the function returning the appropriate account.
UI/UX Consideration:
In the configuration form, it's unclear that Name and Domain are required fields. Especially evident when creating the first Environment.
Comment #6
Anks commentedHi Alex,
@admin_menu_environmental.admin.inc
[1] You should use check_plain to ensure your $variable is fully sanitized.
[2] In some of files you have missed @file block .
Regards,
Ankit Hinglajia
Comment #7
chris.smith commentedComment #8
alexverb commented@vlad.pavlovic
This was indeed a bit unusual, but I wanted the user to be able to change any variable without reloading the page. Instead of using a weird logic for the #required property I'm now handling the validation myself. It will only pass validation if all three fields are filled out. And to inform the user about this I've set a little help text above the table.
@Anks
Same goes for the new validation function where I use placeholders for !title and !number. These are also hardcoded, so no danger for XSS right?
@OPIN
Comment #9
chris.smith commentedYes I was using the full version of admin_menu, not the development version. I received the error when I went to Home » Administration » Configuration » Administration on page http://localhost/#overlay=admin/config/administration/admin_menu. I also get this error when I'm using the dev version of admin_menu too. If you need anymore information please let me know.
Comment #10
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #10.0
PA robot commentedAdded git clone command