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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnv’s picture

Status: Active » Needs review

O-oh, when field_permissions is not installed, there are no tabs, and the menu is incomplete...

dawehner’s picture

I 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?

johnv’s picture

I 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.

tim.plunkett’s picture

Status: Needs review » Needs work

You'd also need to add

  $items['admin/reports/fields/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );

as well.

johnv’s picture

Status: Needs work » Needs review
FileSize
773 bytes

Yep, 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.
)

    // Allow external modules alter the table headers and rows.
    foreach (module_implements('field_ui_overview_alter') as $module) {
      $function = $module .'_field_ui_overview_alter';
      $function($headers, $rows);
    }
dawehner’s picture

Status: Needs review » Fixed

Having 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.