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

Contents of /contributions/modules/auditfiles/auditfiles.install

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Jun 3 22:53:23 2009 UTC (5 months, 3 weeks ago) by mikeryan
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
#185904 by mikeryan - Add several new features
1 <?php
2 /* $Id$ */
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function auditfiles_schema() {
8 $schema = array();
9 /* $schema['auditfiles_domains'] = array(
10 'description' => t('Domains to be considered local references'),
11 'fields' => array(
12 'adid' => array(
13 'type' => 'serial',
14 'unsigned' => TRUE,
15 'not null' => TRUE,
16 ),
17 'domain' => array(
18 'type' => 'varchar',
19 'length' => 255,
20 'not null' => TRUE,
21 ),
22 ),
23 'primary key' => array('adid'),
24 'unique keys' => array(
25 'domainkey' => array('domain'),
26 ),
27 );
28 */
29 return $schema;
30 }
31
32 /**
33 * Implementation of hook_install().
34 */
35 function auditfiles_install() {
36 // Create tables
37 drupal_install_schema('auditfiles');
38 }
39
40 /**
41 * Implementation of hook_uninstall().
42 */
43 function auditfiles_uninstall() {
44 // Remove tables
45 drupal_uninstall_schema('auditfiles');
46 }
47 /*
48 function auditfiles_update_6000() {
49 $ret = array();
50 if (!db_table_exists('auditfiles_domains')) {
51 db_create_table($ret, 'auditfiles_domains', drupal_get_schema('auditfiles_domains'));
52 }
53 return $ret;
54 }*/

  ViewVC Help
Powered by ViewVC 1.1.2