diff modules/user/user.install @ 19:3edae6ecd6c6 6.9

Drupal 6.9
author Franck Deroche <franck@defr.org>
date Thu, 15 Jan 2009 10:15:56 +0100
parents c1f4ac30525a
children
line wrap: on
line diff
--- a/modules/user/user.install	Tue Dec 23 14:32:55 2008 +0100
+++ b/modules/user/user.install	Thu Jan 15 10:15:56 2009 +0100
@@ -1,48 +1,48 @@
 <?php
-// $Id: user.install,v 1.5 2008/01/08 07:46:41 goba Exp $
+// $Id: user.install,v 1.5.2.1 2009/01/06 15:46:38 goba Exp $
 
 /**
  * Implementation of hook_schema().
  */
 function user_schema() {
   $schema['access'] = array(
-    'description' => t('Stores site access rules.'),
+    'description' => 'Stores site access rules.',
     'fields' => array(
       'aid' => array(
         'type' => 'serial',
         'not null' => TRUE,
-        'description' => t('Primary Key: Unique access ID.'),
+        'description' => 'Primary Key: Unique access ID.',
       ),
       'mask' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Text mask used for filtering access.'),
+        'description' => 'Text mask used for filtering access.',
       ),
       'type' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Type of access rule: name, mail or host.'),
+        'description' => 'Type of access rule: name, mail or host.',
       ),
       'status' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
         'size' => 'tiny',
-        'description' => t('Whether rule is to allow(1) or deny(0) access.'),
+        'description' => 'Whether rule is to allow(1) or deny(0) access.',
       ),
     ),
     'primary key' => array('aid'),
   );
 
   $schema['authmap'] = array(
-    'description' => t('Stores distributed authentication mapping.'),
+    'description' => 'Stores distributed authentication mapping.',
     'fields' => array(
       'aid' => array(
-        'description' => t('Primary Key: Unique authmap ID.'),
+        'description' => 'Primary Key: Unique authmap ID.',
         'type' => 'serial',
         'unsigned' => TRUE,
         'not null' => TRUE,
@@ -51,21 +51,21 @@
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
-        'description' => t("User's {users}.uid."),
+        'description' => "User's {users}.uid.",
       ),
       'authname' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Unique authentication name.'),
+        'description' => 'Unique authentication name.',
       ),
       'module' => array(
         'type' => 'varchar',
         'length' => 128,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Module which is controlling the authentication.'),
+        'description' => 'Module which is controlling the authentication.',
       ),
     ),
     'unique keys' => array('authname' => array('authname')),
@@ -73,32 +73,32 @@
   );
 
   $schema['permission'] = array(
-    'description' => t('Stores permissions for users.'),
+    'description' => 'Stores permissions for users.',
     'fields' => array(
       'pid' => array(
         'type' => 'serial',
         'not null' => TRUE,
-        'description' => t('Primary Key: Unique permission ID.'),
+        'description' => 'Primary Key: Unique permission ID.',
       ),
       'rid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('The {role}.rid to which the permissions are assigned.'),
+        'description' => 'The {role}.rid to which the permissions are assigned.',
       ),
       'perm' => array(
         'type' => 'text',
         'not null' => FALSE,
         'size' => 'big',
-        'description' => t('List of permissions being assigned.'),
+        'description' => 'List of permissions being assigned.',
       ),
       'tid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('Originally intended for taxonomy-based permissions, but never used.'),
+        'description' => 'Originally intended for taxonomy-based permissions, but never used.',
       ),
     ),
     'primary key' => array('pid'),
@@ -106,20 +106,20 @@
   );
 
   $schema['role'] = array(
-    'description' => t('Stores user roles.'),
+    'description' => 'Stores user roles.',
     'fields' => array(
       'rid' => array(
         'type' => 'serial',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'description' => t('Primary Key: Unique role id.'),
+        'description' => 'Primary Key: Unique role id.',
       ),
       'name' => array(
         'type' => 'varchar',
         'length' => 64,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Unique role name.'),
+        'description' => 'Unique role name.',
       ),
     ),
     'unique keys' => array('name' => array('name')),
@@ -127,127 +127,127 @@
   );
 
   $schema['users'] = array(
-    'description' => t('Stores user data.'),
+    'description' => 'Stores user data.',
     'fields' => array(
       'uid' => array(
         'type' => 'serial',
         'unsigned' => TRUE,
         'not null' => TRUE,
-        'description' => t('Primary Key: Unique user ID.'),
+        'description' => 'Primary Key: Unique user ID.',
       ),
       'name' => array(
         'type' => 'varchar',
         'length' => 60,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Unique user name.'),
+        'description' => 'Unique user name.',
       ),
       'pass' => array(
         'type' => 'varchar',
         'length' => 32,
         'not null' => TRUE,
         'default' => '',
-        'description' => t("User's password (md5 hash)."),
+        'description' => "User's password (md5 hash).",
       ),
       'mail' => array(
         'type' => 'varchar',
         'length' => 64,
         'not null' => FALSE,
         'default' => '',
-        'description' => t("User's email address."),
+        'description' => "User's email address.",
       ),
       'mode' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
         'size' => 'tiny',
-        'description' => t('Per-user comment display mode (threaded vs. flat), used by the {comment} module.'),
+        'description' => 'Per-user comment display mode (threaded vs. flat), used by the {comment} module.',
       ),
       'sort' => array(
         'type' => 'int',
         'not null' => FALSE,
         'default' => 0,
         'size' => 'tiny',
-        'description' => t('Per-user comment sort order (newest vs. oldest first), used by the {comment} module.'),
+        'description' => 'Per-user comment sort order (newest vs. oldest first), used by the {comment} module.',
       ),
       'threshold' => array(
         'type' => 'int',
         'not null' => FALSE,
         'default' => 0,
         'size' => 'tiny',
-        'description' => t('Previously used by the {comment} module for per-user preferences; no longer used.'),
+        'description' => 'Previously used by the {comment} module for per-user preferences; no longer used.',
       ),
       'theme' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t("User's default theme."),
+        'description' => "User's default theme.",
       ),
       'signature' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t("User's signature."),
+        'description' => "User's signature.",
       ),
       'created' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('Timestamp for when user was created.'),
+        'description' => 'Timestamp for when user was created.',
       ),
       'access' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('Timestamp for previous time user accessed the site.'),
+        'description' => 'Timestamp for previous time user accessed the site.',
       ),
       'login' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
-        'description' => t("Timestamp for user's last login."),
+        'description' => "Timestamp for user's last login.",
       ),
       'status' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
         'size' => 'tiny',
-        'description' => t('Whether the user is active(1) or blocked(0).'),
+        'description' => 'Whether the user is active(1) or blocked(0).',
       ),
       'timezone' => array(
         'type' => 'varchar',
         'length' => 8,
         'not null' => FALSE,
-        'description' => t("User's timezone."),
+        'description' => "User's timezone.",
       ),
       'language' => array(
         'type' => 'varchar',
         'length' => 12,
         'not null' => TRUE,
         'default' => '',
-        'description' => t("User's default language."),
+        'description' => "User's default language.",
       ),
       'picture' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t("Path to the user's uploaded picture."),
+        'description' => "Path to the user's uploaded picture.",
       ),
       'init' => array(
         'type' => 'varchar',
         'length' => 64,
         'not null' => FALSE,
         'default' => '',
-        'description' => t('Email address used for initial account creation.'),
+        'description' => 'Email address used for initial account creation.',
       ),
       'data' => array(
         'type' => 'text',
         'not null' => FALSE,
         'size' => 'big',
-        'description' => t('A serialized array of name value pairs that are related to the user. Any form values posted during user edit are stored and are loaded into the $user object during user_load(). Use of this field is discouraged and it will likely disappear in a future version of Drupal.'),
+        'description' => 'A serialized array of name value pairs that are related to the user. Any form values posted during user edit are stored and are loaded into the $user object during user_load(). Use of this field is discouraged and it will likely disappear in a future version of Drupal.',
       ),
     ),
     'indexes' => array(
@@ -262,21 +262,21 @@
   );
 
   $schema['users_roles'] = array(
-    'description' => t('Maps users to roles.'),
+    'description' => 'Maps users to roles.',
     'fields' => array(
       'uid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('Primary Key: {users}.uid for user.'),
+        'description' => 'Primary Key: {users}.uid for user.',
       ),
       'rid' => array(
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('Primary Key: {role}.rid for role.'),
+        'description' => 'Primary Key: {role}.rid for role.',
       ),
     ),
     'primary key' => array('uid', 'rid'),