summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-13 18:36:25 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-13 18:36:25 +0000
commit16dc866bbaeb910693cc0711680cac6faf6913e7 (patch)
tree89c187e6071b699655cf5b6fa7fd0bee14ca52e0
parentfbfa7a4150a40d6df9347692bb6681f45f804c7d (diff)
downloadbrdo-16dc866bbaeb910693cc0711680cac6faf6913e7.tar.gz
brdo-16dc866bbaeb910693cc0711680cac6faf6913e7.tar.bz2
- Patch #539434 by lambic, deekayen: re-order functions in menu.install.
-rw-r--r--modules/menu/menu.install60
1 files changed, 30 insertions, 30 deletions
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
@@ -7,36 +7,6 @@
*/
/**
- * Implement hook_install().
- */
-function menu_install() {
- $system_menus = menu_list_system_menus();
- $t = get_t();
- $descriptions = array(
- 'navigation' => $t('The <em>Navigation</em> 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 <em>User menu</em> contains links related to the user's account, as well as the 'Log out' link."),
- 'management' => $t('The <em>Management</em> menu contains links for content creation, structure, user management, and similar site activities.'),
- 'main-menu' => $t('The <em>Main menu</em> 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 <em>Secondary menu</em> 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 <em>Navigation</em> 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 <em>User menu</em> contains links related to the user's account, as well as the 'Log out' link."),
+ 'management' => $t('The <em>Management</em> menu contains links for content creation, structure, user management, and similar site activities.'),
+ 'main-menu' => $t('The <em>Main menu</em> 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 <em>Secondary menu</em> 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();
+}
+