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.
This is a follow-up for #1101506: admin/reports/fields for 'used in Views', too. , where the very nice report 'Fields used in views' is created.
Attached patch moves the report 1 level deeper in the menu-hierarcy, resulting in a cleaner menu tree.
This is also the location where the module Field permissions stores a similar report.
Test case:
- enable Field_permissions, enable Views;
- refresh the menu cache, the menu now looks like this:
- Reports
- Reports > Fields used in Views <-- current location of report
- Reports > Field list
- Reports > Field list > List
- Reports > Field list > Permissions
- Reports > Field list > Used in Views <-- new location of report
- apply the patch, refresh menu cache
- the report 'Used in views' is now nicely aligned with the other 2 reports.
Comment | File | Size | Author |
---|---|---|---|
#5 | views_1615752_5_field_list.patch | 773 bytes | johnv |
views_ui_000000_reports-fields-views-fields.patch | 613 bytes | johnv | |
Comments
Comment #1
johnvO-oh, when field_permissions is not installed, there are no tabs, and the menu is incomplete...
Comment #2
dawehnerI guess you mean field_ui, but right the code should at least provide some kind of fallback, but honestly this would probably confuse people... why it is display in different locations?
Comment #3
johnvI think creating a 'tab' just didn't come up at the time. I asked for an extra column, which was not possible, so a new menu was the next best thing... except we missed the tab-option.
Comment #4
tim.plunkettYou'd also need to add
as well.
Comment #5
johnvYep, that did the trick. New version attached.
Next stop: adding it as a column tot the field_ui-module list.
(That would require a modification over there, though. Something like the code below.
I've posted issue #1618016: Make /admin/reports/fields extensible.
)
Comment #6
dawehnerHaving everything in one place sounds cool, though there might be too much information.
lets get this into 7.x-3.x and 8.x-3.x