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.
Hello
We don't need an admin menu, specially, if we already have a Management menu.
And I think it is up to the user to move "Administer" to another location than the default location.
If you really have to create and move these around, then at most, it should move the Administer menu group to the Management menu (and create it if it doesn't exist), to mimic Drupal 7.
But i don't recommend that.
Users like their site the way they want and don't like modules to change it without their approval.
/**
* Implementation of hook_install().
*/
function admin_install() {
if (db_table_exists('menu_custom') && !db_result(db_query("SELECT menu_name FROM {menu_custom} WHERE menu_name = 'admin'"))) {
$t = get_t();
db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'admin', $t('Admin'), $t('Administrative links.'));
}
}
Comments
Comment #1
lpalgarvio CreditAttribution: lpalgarvio commentedplease mimic the behavior of D7 core by using Management menu instead of Admin menu.
from D7: