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

Diff of /contributions/modules/advuser/advuser.install

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

revision 1.1 by earnie, Thu May 1 16:58:17 2008 UTC revision 1.2 by earnie, Mon Jun 9 20:18:56 2008 UTC
# Line 0  Line 1 
1    <?php
2    
3    function advuser_install() {
4      variable_set('advuser_new_notify', FALSE);
5      variable_set('advuser_new_subject', t('[%site] has a new user (%user_name).'));
6      variable_set('advuser_new_mail', t(
7    "=====  User Information:  =====
8    %user_name created on %user_created with email address %user_email and status of %user_status.  The user prefers a timezone of %user_timezone, language of %user_language and theme of %user_theme.
9    
10    =====  User Administration:  =====
11    %uri
12    
13    =====  Investigate User:  =====
14    Yahoo search  %user_email: %yahoo_user
15    Google search %user_email: %google_user
16    
17    --
18    %site"));
19    
20      variable_set('advuser_modify_notify', FALSE);
21      variable_set('advuser_modify_subject', t('[%site] user (%user_name) modified their account.'));
22      variable_set('advuser_modify_mail', t(
23    "=====  User Information:  =====
24    %user_name created on %user_created with email address %user_email and status of %user_status.  The user prefers a timezone of %user_timezone, language of %user_language and theme of %user_theme.
25    
26    =====  User Administration:  =====
27    %uri
28    
29    =====  Investigate User:  =====
30    Yahoo search  %user_email: %yahoo_user
31    Google search %user_email: %google_user
32    
33    --
34    %site"));
35    
36      variable_set('advuser_listno', 50);
37      variable_set('advuser_profile_fields', NULL);
38    }
39    
40    function advuser_uninstall() {
41      $delete_variables = "DELETE FROM {variable} WHERE name LIKE 'ADVUSER_%'";
42      $remove_system = "DELETE FROM {system} WHERE name = 'advuser'";
43      db_query($delete_variables);
44      cache_clear_all('variables', 'cache');
45    
46      // Allow the user to remove the module from the file system but that
47      // removal must happen before the module list is displayed again.
48      db_query($remove_system);
49    }
50    
51    // vim:ft=php:sts=2:sw=2:ts=2:et:ai:sta:ff=unix

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.3