Skip to content
Snippets Groups Projects
Commit 4b187a18 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1187906 by David_Rothstein, tstoeckler: Fixed Shortcut module cannot be...

Issue #1187906 by David_Rothstein, tstoeckler: Fixed Shortcut module cannot be installed via an install profile if the menu module wasn't installed first.
parent f4160148
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,13 @@ function shortcut_install() {
'weight' => -19,
),
);
// If Drupal is being installed, rebuild the menu before saving the shortcut
// set, to make sure the links defined above can be correctly saved. (During
// installation, the menu might not have been built at all yet, or it might
// have been built but without the node module's links in it.)
if (drupal_installation_attempted()) {
menu_rebuild();
}
shortcut_set_save($shortcut_set);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment