Index: modules/menu/menu.install =================================================================== RCS file: /cvs/drupal/drupal/modules/menu/menu.install,v retrieving revision 1.21 diff -u -p -r1.21 menu.install --- modules/menu/menu.install 9 Oct 2009 08:02:24 -0000 1.21 +++ modules/menu/menu.install 13 Oct 2009 12:21:13 -0000 @@ -7,36 +7,6 @@ */ /** - * 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(). */ function menu_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(); +} +