Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #1
Problem/Motivation
This is a sub-issue of #2062715: [META] Many UI/UX issues with custom blocks. to address confusion caused by inconsistent use of the admin UI.
- The path for editing custom blocks is incorrect in
hook_admin_paths()
, which is very disorienting when editing one from the block admin UI suddenly dumps you into a non-administrative form. - There is no configuration link for the module defined in its .info.
Proposed resolution
- Add a configuration path for
admin/structure/custom-blocks
. - Correct the
hook_admin_paths()
link.
Remaining tasks
Needs review.
User interface changes
- There is now a configuration option for the custom blocks module.
- Editing a custom block no longer dumps you back in the non-admin theme.
API changes
N/A
Related Issues
Comment | File | Size | Author |
---|---|---|---|
#1 | configure.png | 25.29 KB | xjm |
#1 | now_in_seven_and_overlay.png | 80.84 KB | xjm |
custom-block-admin-paths.patch | 911 bytes | xjm | |
Comments
Comment #1
xjmNow there's a configure link:
And I confirmed it goes to the right place.
Plus we now edit custom blocks in the admin theme, yay:
Comment #1.0
xjmUpdated issue summary.
Comment #2
larowlanGood catch!
The /edit was removed during the cycle of the original patch but obviously missed.
Comment #3
webchickCommitted and pushed to 8.x. Thanks!
Comment #4
larowlanBrillo!
Comment #5.0
(not verified) CreditAttribution: commentedUpdated issue summary.