Problem/Motivation
Why not give option to change depth of menu that is shown.
Now it is hardcoded to 4.
Steps to reproduce
Proposed resolution
Two solutions
1. Create config form where we can configure this.
2. At least invoke alter hook so we can alter depth value
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | after-patch-result.png | 89.63 KB | marcusvsouza |
| #18 | after-patch-options.png | 14.03 KB | marcusvsouza |
| #17 | 3200542-17.patch | 5.96 KB | paulocs |
| #17 | interdiff-15-17.txt | 480 bytes | paulocs |
| #15 | 3200542-15.patch | 5.94 KB | paulocs |
Comments
Comment #2
roman-yrv commentedI will try to do it as a config form
Comment #3
roman-yrv commentedI have done it.

You can test it.
Comment #4
guilhermevp commentedI'm trying to apply the patch at the root of the module folder in the version 3.x-dev with no success.
Comment #5
roman-yrv commentedYes, unfortunately, that patch was generated incorrectly.
I recreated the patch.
Can you test it?
Comment #6
guilhermevp commentedPatch applies cleanly now, works perfectly!
Add video as evidence.
Comment #7
romainj commentedThanks for the work. My only concern is that we already have a config form in the Admin Toolbar Extra Tools module. So maybe we should use it.
Comment #8
guilhermevp commentedChanged the functionality to Admin Toolbar Tools config menu. Please review.
Comment #9
marcusvsouza commentedThe patch in the comment #8 applies perfectly and runs as expected!
Comment #10
chegor commented+1 RTBC
Comment #11
neclimdulThis removes the newline from the file.
This is a bit awkward. The configuration is clearly for the admin toolbar module. I'm not sure what the added complexity with the module check and the extra module adds other then additional overhead of the module check. Seems to me like Roman had the right approach in #5.
Also, this adds an update to set the value and schema for the config but doesn't set the default value in the config install. Seems like that would make new installs inconsistent and possibly broken.
Comment #12
neclimdulLooking back, none of the problems from my previous review apply to #5. IMHO I think that was probably the right approach and probably RTBC.
Comment #13
pasqualleOne small suggestion: The config should be checked before updated in hook_update_N().
But as that was not done even in previous updates, then I am OK with that.
Comment #14
paulocsI agree with #11. Patch #8 needs some work.
Why is it a problem to create a new settings form?
IMHO it does not right to add this configuration in the
admin_toolbar_toolsmodule.Comment #15
paulocsA new patch with the same approach of patch #5.
Comment #17
paulocsOps.
Comment #18
marcusvsouza commentedTesting Steps
Expected Results
Actual Results
The code follows the standards and not change any other functionalities.
Comment #19
marcusvsouza commentedComment #21
adriancidThanks