diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-11 23:37:21 -0400 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-11 23:37:21 -0400 |
commit | 4b187a18b886bd45b2e33e953c7ca522d9b5b14e (patch) | |
tree | d8fffc123680bf7847716bd19dedf3a1d8af7e87 /modules/shortcut | |
parent | f4160148ca79b627be199a81d6357bcabd197d27 (diff) | |
download | brdo-4b187a18b886bd45b2e33e953c7ca522d9b5b14e.tar.gz brdo-4b187a18b886bd45b2e33e953c7ca522d9b5b14e.tar.bz2 |
Issue #1187906 by David_Rothstein, tstoeckler: Fixed Shortcut module cannot be installed via an install profile if the menu module wasn't installed first.
Diffstat (limited to 'modules/shortcut')
-rw-r--r-- | modules/shortcut/shortcut.install | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/shortcut/shortcut.install b/modules/shortcut/shortcut.install index 9dbab806d..60ee6be8d 100644 --- a/modules/shortcut/shortcut.install +++ b/modules/shortcut/shortcut.install @@ -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); } |