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

Contents of /contributions/modules/revision_moderation/revision_moderation.install

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


Revision 1.6 - (show annotations) (download) (as text)
Fri Dec 19 22:11:44 2008 UTC (11 months, 1 week ago) by add1sun
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-7--1
Changes since 1.5: +1 -5 lines
File MIME type: text/x-php
Removing all of the erroneous cron additions from the D6 upgrade patch.
1 <?php
2 // $Id: revision_moderation.install,v 1.5 2008/07/31 17:29:58 westwesterson Exp $
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function revision_moderation_schema() {
8 $schema['revision_moderation'] = array(
9 'fields' => array(
10 'nid' => array(
11 'type' => 'int',
12 'unsigned' => TRUE,
13 'not null' => TRUE,
14 'default' => 0
15 ),
16 'revision_moderation' => array(
17 'type' => 'int',
18 'not null' => TRUE,
19 'default' => 0,
20 'size' => 'tiny'
21 ),
22 ),
23 'primary key' => array('nid'),
24 );
25
26 return $schema;
27 }
28
29 /**
30 * Implementation of hook_install().
31 */
32 function revision_moderation_install() {
33 // Create table
34 drupal_install_schema('revision_moderation');
35 }
36
37 /**
38 * Implementation of hook_uninstall().
39 */
40 function revision_moderation_uninstall() {
41 // Drop the table
42 drupal_uninstall_schema('revision_moderation');
43 variable_del('revision_moderation_exempt');
44 }

  ViewVC Help
Powered by ViewVC 1.1.2