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

Contents of /contributions/modules/views_savedsearches/views_savedsearches.install

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


Revision 1.3 - (show annotations) (download) (as text)
Tue Jan 27 07:11:52 2009 UTC (10 months ago) by quicksketch
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, HEAD
Changes since 1.2: +12 -6 lines
File MIME type: text/x-php
Updating code style. Fixing a few notices. AHAH saving is now working.
1 <?php
2 // $Id: views_savedsearches.install,v 1.2 2009/01/27 03:59:07 quicksketch Exp $
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function views_savedsearches_schema() {
8 $schema['views_savedsearches'] = array(
9 'fields' => array(
10 'sid' => array(
11 'type' => 'int',
12 'unsigned' => TRUE,
13 'not null' => TRUE,
14 ),
15 'uid' => array(
16 'type' => 'int',
17 'unsigned' => TRUE,
18 'not null' => TRUE,
19 ),
20 'vid' => array(
21 'type' => 'int',
22 'unsigned' => TRUE,
23 'not null' => TRUE,
24 ),
25 'name' => array(
26 'type' => 'varchar',
27 'length' => '30',
28 'not null' => TRUE,
29 ),
30 'filters' => array(
31 'type' => 'text',
32 'size' => 'big',
33 ),
34 ),
35 'primary key' => array('sid'),
36 );
37 return $schema;
38 }
39
40 /**
41 * Implementation of hook_install().
42 */
43 function views_savedsearches_install() {
44 drupal_install_schema('views_savedsearches');
45 }
46
47 /**
48 * Implementation of hook_uninstall().
49 */
50 function views_savedsearches_uninstall() {
51 drupal_uninstall_schema('views_savedsearches');
52 variable_del('views_savedsearches');
53 }

  ViewVC Help
Powered by ViewVC 1.1.2