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.
Plugin Manager creates two instances of "Install" in the admin menu do to what I think is an accidental duplication of code in plugin_manager.module:
$items['admin/build/modules/install'] = array(
'title' => 'Install',
'access arguments' => array('install plugins'),
'page callback' => 'drupal_get_form',
'page arguments' => array('plugin_manager_find'),
'weight' => 9,
'type' => MENU_LOCAL_TASK,
);
$items['admin/build/themes/install'] = array(
'title' => 'Install',
'access arguments' => array('install plugins'),
'page callback' => 'drupal_get_form',
'page arguments' => array('plugin_manager_find'),
'weight' => 9,
'type' => MENU_LOCAL_TASK,
);
Patch would just delete the 2nd instance of code. And I've never created one (or do I have git access), but here's basically what it would need:
- $items['admin/build/modules/install'] = array(
- 'title' => 'Install',
- 'access arguments' => array('install plugins'),
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('plugin_manager_find'),
- 'weight' => 9,
- 'type' => MENU_LOCAL_TASK,
- );
Comment | File | Size | Author |
---|---|---|---|
plugin_manager_install_menu_fix.patch | 470 bytes | paulgemini | |
Comments
Comment #1
paulgemini CreditAttribution: paulgemini commentedBy the way - applying this patch + the patch here:
http://drupal.org/node/1132688
Fixed the error described the issue linked.