/[drupal]/contributions/modules/accountmenu/accountmenu.install
ViewVC logotype

Contents of /contributions/modules/accountmenu/accountmenu.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Tue Sep 29 18:11:29 2009 UTC (8 weeks, 3 days ago) by mattyoung
Branch: MAIN
CVS Tags: DRUPAL-6--1-6, HEAD
Changes since 1.3: +20 -5 lines
File MIME type: text/x-php
Add Register menu item
1 <?php
2 // $Id: accountmenu.install,v 1.3 2009/07/10 00:00:10 mattyoung Exp $
3 /**
4 * @file accountmenu.install
5 * accountmenu module install/uninstall
6 */
7
8
9 function accountmenu_install() {
10 $t = get_t();
11 db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'accountmenu', $t('Account menu'), $t('Account menu links.'));
12
13 include_once('accountmenu.module');
14 _accountmenu_setup_menu();
15
16 drupal_set_message($t('Account menu is installed, go to <a href="@help">help</a> for instructions.',
17 array('@help' => url('admin/help/accountmenu'),
18 )), 'status');
19 }
20
21
22
23 function accountmenu_uninstall() {
24 variable_del('accountmenu_menu_name');
25
26 include_once('accountmenu.module');
27 _accountmenu_delete_menu();
28
29 db_query("DELETE FROM {menu_custom} WHERE menu_name = 'accountmenu'");
30 }
31
32
33
34 function accountmenu_update_6100() {
35 include_once('accountmenu.module');
36 _accountmenu_reset_menu();
37 $t = get_t();
38 drupal_set_message($t('Account menu has been reset to enable new features, any customization you may have made is lost, please re-do at <a href="@url">settings</a>.',
39 array('@help' => url('admin/settings/accountmenu'),
40 )), 'status');
41 return array();
42 }
43
44
45 function accountmenu_update_6101() {
46 include_once('accountmenu.module');
47 _accountmenu_reset_menu();
48 $t = get_t();
49 drupal_set_message($t('Account menu has been reset to enable new features, any customization you may have made is lost, please re-do at <a href="@url">settings</a>.',
50 array('@help' => url('admin/settings/accountmenu'),
51 )), 'status');
52 return array();
53 }

  ViewVC Help
Powered by ViewVC 1.1.2