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

Contents of /contributions/modules/remember_filter/remember_filter.install

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


Revision 1.2 - (show annotations) (download) (as text)
Thu Feb 5 21:36:22 2009 UTC (9 months, 2 weeks ago) by smsimms
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +37 -18 lines
File MIME type: text/x-php
Updates for D6
1 <?php
2 // $Id: remember_filter.install,v 1.1 2006/08/01 21:00:17 smsimms Exp $
3
4 /**
5 * @file
6 * Update file for the remember_filter module. All functions in this
7 * file are implementations of hook_update_N(), unless indicated otherwise.
8 */
9
10 /**
11 * Implementation of hook_schema()
12 */
13 function remember_filter_schema() {
14 $schema['remember_filter'] = array(
15 'description' => t('Table used to store the last filter used per user'),
16 'fields' => array(
17 'uid' => array(
18 'description' => 'The {users}.uid of the user who is associated with the remembered filter.',
19 'type' => 'int',
20 'unsigned' => TRUE,
21 'not null' => TRUE,
22 'default' => 0,
23 ),
24 'format' => array(
25 'type' => 'int',
26 'not null' => TRUE,
27 'default' => 0,
28 'description' => 'The {filter_formats}.format which is being remembered for this user.',
29 ),
30 ),
31 'primary key' => array('uid'),
32 );
33
34 return $schema;
35 }
36
37 /**
38 * Implementation of hook_install().
39 */
40 function remember_filter_install() {
41 drupal_install_schema('remember_filter');
42 }
43
44 /**
45 * Implementation of hook_uninstall().
46 */
47 function remember_filter_uninstall() {
48 drupal_uninstall_schema('remember_filter');
49 }

  ViewVC Help
Powered by ViewVC 1.1.2