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.
$items['admin/settings/menu_block'] = array(
'title' => 'Menu block',
'description' => 'Add a new menu block.',
'access arguments' => array('administer blocks'),
'page callback' => '_menu_block_by_module_hack', // And, I mean hack.
'file' => 'menu_block.pages.inc',
);
Can we remove that hack please? I'll post a patch if you agree.
Comments
Comment #1
JohnAlbinSure, but the purpose of the hack is this:
I only really want the help link the admin/by-module page. The admin/settings/menu_block page is just a means to get that.
[edit: So, yes, we can remove it if you know of a way to get the "help" link to appear on admin/by-module. The problem is that Menu block integrates so well with the existing Drupal core functionality that, without reading some documentation, you may not know where to go to get at its functionality. ]
Comment #2
sunIf the goal is core, then we have to remove that. :)
Another downside of this item is that it needlessly clutters the Administration menu (admin_menu) below Site configuration.
IMHO, it would more than sufficient to mention this a) on the project page and b) in the README.txt.
Comment #3
JohnAlbin…if we had a README.txt. :-p
But I agree, the hack should go. Hopefully, the help text on admin/build/block will also orient new users.
Comment #4
JohnAlbinFixed. Thanks for the suggestion, Daniel!