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

Contents of /contributions/modules/checklist/checklist.install

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


Revision 1.4 - (show annotations) (download) (as text)
Thu Oct 29 04:35:17 2009 UTC (4 weeks ago) by davereid
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +44 -40 lines
File MIME type: text/x-php
by Dave Reid: Cleared out existing code in preparation for new development.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function checklist_schema() {
8 $schema['checklist'] = array(
9 'description' => '',
10 'fields' => array(
11 'id' => 'Checklist ID',
12 'clid' => 'Checklist key',
13 'type' => 'Checklist type (varchar)',
14 ),
15 'primary key' => array('clid'),
16 );
17 $schema['checklist_task'] = array(
18 'description' => '',
19 'fields' => array(
20 'clid' => 'Checklist ID',
21 'tid' => 'Task ID',
22 'completed' => 'UNIX timestmap of completion or 0 if not yet completed.',
23 'uid' => '{user}.uid of the account that completed the task.',
24 'page' => 'Page of the completed task.',
25 'memo' => 'Memo from the user about the task.',
26 ),
27 'primary key' => array('clid', 'tid', 'uid', 'page'),
28 );
29
30 $schema['cache_checklist'] = drupal_get_schema_unprocessed('system', 'cache');
31 $schema['cache_checklist']['description'] = 'Cache table for the Checklist module to store checklists and their groups and tasks, identified by checklist and user ID.';
32
33 return $schema;
34 }
35
36 /**
37 * Implementation of hook_install().
38 */
39 function checklist_install() {
40 drupal_install_schema('checklist');
41 }
42
43 /**
44 * Implementation of hook_uninstall().
45 */
46 function checklist_uninstall() {
47 drupal_uninstall_schema('checklist');
48 }
49
50
51

  ViewVC Help
Powered by ViewVC 1.1.2