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.
Problem/Motivation
The admin/content/antispam/overview link does not work, forcing a 403 for those that try to use it
Proposed resolution
Fix to hook_menu
Original report by [generalconsensus]
Comment | File | Size | Author |
---|---|---|---|
#5 | 2793287-5-fix-to-overview-menu.patch | 1.12 KB | ksenzee |
#5 | antispam-menu-after.PNG | 42.14 KB | ksenzee |
#5 | antispam-menu-before.PNG | 57.16 KB | ksenzee |
Comments
Comment #2
generalconsensus CreditAttribution: generalconsensus at Forum One commentedComment #3
generalconsensus CreditAttribution: generalconsensus at Forum One commentedComment #4
cfinke CreditAttribution: cfinke commentedSorry for the inconvenience, but since you posted this, `antispam.module` must have changed, since I don't see the moderation queue link there anymore. Are you able to confirm whether this issue is still reproducible?
Comment #5
ksenzeeThe menu structure here is still wrong. The module should be creating one tab under /admin/content, and putting all its content admin pages underneath that tab. Right now, the 7.x-1.x version of the module creates top-level "Overview", "Nodes", "Comments" and "Statistics" tabs on the admin/content page. I'm attaching a patch that puts all the content admin pages underneath an "Antispam" top-level tab under /admin/content.
Before:
After:
Comment #7
bramvandenbulcke CreditAttribution: bramvandenbulcke commentedI was having the same problem with the menu as ksenzee and the patch solved my issue. Thanks ksenzee!
The patch failed testing here on drupal.org but I could apply the patch on my local machine without errors.