/[drupal]/contributions/report.install
ViewVC logotype

Contents of /contributions/report.install

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Nov 2 17:38:25 2009 UTC (3 weeks, 4 days ago) by ki
Branch: MAIN
File MIME type: text/x-php
Initial check-in.
1 <?php
2 // $Id$
3 /**
4 * @file
5 * Report installation file.
6 */
7
8 /**
9 * Implementation of hook_install().
10 */
11 function report_install() {
12 drupal_install_schema('report');
13 }
14
15 /**
16 * Implementation of hook_uninstall().
17 */
18 function report_uninstall() {
19 drupal_uninstall_schema('report');
20
21 variable_del('report_chart_height');
22 variable_del('report_chart_width');
23 variable_del('report_chart_period');
24 variable_del('report_chart_range');
25 variable_del('report_cron_time');
26 variable_del('report_last_date');
27 variable_del('report_use_chart');
28 }
29
30 /**
31 * Implementation of hook_schema().
32 */
33 function report_schema() {
34 $schema['report'] = array(
35 'fields' => array(
36 'rid' => array('type' => 'serial', 'not null' => TRUE),
37 'date' => array('type' => 'varchar', 'length' => 10, 'not null' => TRUE),
38 'realm' => array('type' => 'varchar', 'length' => 50, 'not null' => TRUE),
39 'data' => array('type' => 'text', 'not null' => TRUE),
40 ),
41 'indexes' => array(
42 'date' => array('date'),
43 'realm' => array('realm'),
44 ),
45 'primary key' => array('rid'),
46 );
47
48 return $schema;
49 }

  ViewVC Help
Powered by ViewVC 1.1.2