From 16dc866bbaeb910693cc0711680cac6faf6913e7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 Oct 2009 18:36:25 +0000 Subject: - Patch #539434 by lambic, deekayen: re-order functions in menu.install. --- modules/menu/menu.install | 60 +++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'modules') diff --git a/modules/menu/menu.install b/modules/menu/menu.install index 6514ef2ba..e4246d020 100644 --- a/modules/menu/menu.install +++ b/modules/menu/menu.install @@ -6,36 +6,6 @@ * Install, update and uninstall functions for the menu module. */ -/** - * Implement hook_install(). - */ -function menu_install() { - $system_menus = menu_list_system_menus(); - $t = get_t(); - $descriptions = array( - 'navigation' => $t('The Navigation menu contains links such as Recent posts (if the Tracker module is enabled). Non-administrative links are added to this menu by default by modules.'), - 'user-menu' => $t("The User menu contains links related to the user's account, as well as the 'Log out' link."), - 'management' => $t('The Management menu contains links for content creation, structure, user management, and similar site activities.'), - 'main-menu' => $t('The Main menu is the default source for the Main links which are often used by themes to show the major sections of a site.'), - 'secondary-menu' => $t('The Secondary menu is the default source for the Secondary links which are often used for legal notices, contact details, and other navigation items that play a lesser role than the Main links.'), - ); - foreach ($system_menus as $menu_name => $title) { - $menu = array( - 'menu_name' => $menu_name, - 'title' => $t($title), - 'description' => $descriptions[$menu_name], - ); - menu_save($menu); - } -} - -/** - * Implement hook_uninstall(). - */ -function menu_uninstall() { - menu_rebuild(); -} - /** * Implement hook_schema(). */ @@ -69,3 +39,33 @@ function menu_schema() { return $schema; } +/** + * Implement hook_install(). + */ +function menu_install() { + $system_menus = menu_list_system_menus(); + $t = get_t(); + $descriptions = array( + 'navigation' => $t('The Navigation menu contains links such as Recent posts (if the Tracker module is enabled). Non-administrative links are added to this menu by default by modules.'), + 'user-menu' => $t("The User menu contains links related to the user's account, as well as the 'Log out' link."), + 'management' => $t('The Management menu contains links for content creation, structure, user management, and similar site activities.'), + 'main-menu' => $t('The Main menu is the default source for the Main links which are often used by themes to show the major sections of a site.'), + 'secondary-menu' => $t('The Secondary menu is the default source for the Secondary links which are often used for legal notices, contact details, and other navigation items that play a lesser role than the Main links.'), + ); + foreach ($system_menus as $menu_name => $title) { + $menu = array( + 'menu_name' => $menu_name, + 'title' => $t($title), + 'description' => $descriptions[$menu_name], + ); + menu_save($menu); + } +} + +/** + * Implement hook_uninstall(). + */ +function menu_uninstall() { + menu_rebuild(); +} + -- cgit v1.2.3